diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2020-02-16 20:53:15 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-17 15:36:04 +0100 |
commit | ce6434c44a9f820275908ff0ee4166427f481d6d (patch) | |
tree | 4a4770bdb2ef9d30e15e7f62dccf4b7ba23a71a8 /testtools | |
parent | 1d219e509750c73edbe610a9ed7f06e7de3bdbc1 (diff) |
Remove never-executed else-block
And the always-tru if-check
Change-Id: I674d65506e1791fadab7d2871010528fd5dd94d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx index abb082e3fd24..5deddf4005fb 100644 --- a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx +++ b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx @@ -112,15 +112,11 @@ public __gc class BridgeTest : public WeakBase, public XMain Any a2 = (Any) val2; ret = a1.Type == a2.Type && compareData(a1.Value, a2.Value); } - else if (t1->IsValueType) + else { //Any, enum, int, bool char, float, double etc. ret = val1->Equals(val2); } - else - { - Debug::Assert(false); - } return ret; } |