summaryrefslogtreecommitdiff
path: root/configmgr/source/data.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-24 17:49:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-24 17:52:46 +0100
commit6935acb053dcc202a7ce72cdd0fc3a30f1161be0 (patch)
tree4a9292118cd7334872f4f778ae6125ecc34034c7 /configmgr/source/data.cxx
parenta0e4c24ecf8c92f3dba91a1b2319ec816ab57016 (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.cxx2
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(