diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-24 17:49:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-24 17:52:46 +0100 |
commit | 6935acb053dcc202a7ce72cdd0fc3a30f1161be0 (patch) | |
tree | 4a9292118cd7334872f4f778ae6125ecc34034c7 /configmgr/source/data.cxx | |
parent | a0e4c24ecf8c92f3dba91a1b2319ec816ab57016 (diff) |
Replace "known-good" dynamic_casts with static_casts
...it avoids false warnings about unchecked dynamic_cast results from static
code analyzers, and potentially makes the code a little faster, too. (Most of
these dynamic_casts were kind of a leftover from a very early design that
dispateched on Node type via dynamic_cast instead of a Node::Kind, but which was
much too slow.)
Change-Id: I8db08a1c35783f8ea6c51eed55b11faa2d958807
Diffstat (limited to 'configmgr/source/data.cxx')
-rw-r--r-- | configmgr/source/data.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index 8d986997fce9..f6535dff9c00 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -279,7 +279,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( break; case Node::KIND_SET: if (!templateName.isEmpty() && - !dynamic_cast< SetNode * >(parent.get())->isValidTemplate( + !static_cast< SetNode * >(parent.get())->isValidTemplate( templateName)) { throw css::uno::RuntimeException( |