summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:33:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:33:11 +0200
commit06aa3dd5b47d7eedecc8dd45f12581f2e9fa14ee (patch)
treea2195dab7377cd3d72b8568a356b8a351167ab4e /binaryurp
parent0446cca0b6c4a4b3a9dcdaee957b6ff8aaba3135 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: binaryurp
Change-Id: I109c8a2c51c7916ce8f8964b57ee45747868844f
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/unmarshal.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/binaryurp/source/unmarshal.cxx b/binaryurp/source/unmarshal.cxx
index 3f1f5fc42032..9c51a0b619ff 100644
--- a/binaryurp/source/unmarshal.cxx
+++ b/binaryurp/source/unmarshal.cxx
@@ -145,8 +145,7 @@ css::uno::TypeDescription Unmarshal::readType() {
"binaryurp::Unmarshal: cache flag of simple type is set");
}
return css::uno::TypeDescription(
- *typelib_static_type_getByTypeClass(
- static_cast< typelib_TypeClass >(tc)));
+ *typelib_static_type_getByTypeClass(tc));
case typelib_TypeClass_SEQUENCE:
case typelib_TypeClass_ENUM:
case typelib_TypeClass_STRUCT:
@@ -163,9 +162,7 @@ css::uno::TypeDescription Unmarshal::readType() {
} else {
OUString const str(readString());
css::uno::TypeDescription t(str);
- if (!t.is() ||
- t.get()->eTypeClass != static_cast< typelib_TypeClass >(tc))
- {
+ if (!t.is() || t.get()->eTypeClass != tc) {
throw css::io::IOException(
"binaryurp::Unmarshal: type with unknown name: " + str);