summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-04 08:22:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-04 08:22:55 +0100
commit7d4a6946500100966b34b162c150994a017b9238 (patch)
treebec45298e6cb3128c5388e84be3d9f982b69b6b6 /unodevtools
parenteff69c6b4c71332de2219288ed91bc1c7a280408 (diff)
unodevtools: loplugin:cstylecast
Change-Id: Id4bd8bb8361204ae281a090840b08c502e5b4a7a
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx16
-rw-r--r--unodevtools/source/skeletonmaker/javacompskeleton.cxx8
2 files changed, 12 insertions, 12 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index df64f1d32f36..d8441c7fbbcb 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -1056,16 +1056,16 @@ void generateSkeleton(ProgramOptions const & options,
*pofs << (nm > 0 ? "// closing namespace\n\n" : "\n");
}
- if ( !standardout && pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if ( !standardout && pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, false));
}
} catch (CannotDumpException & e) {
std::cerr << "ERROR: " << e.getMessage() << "\n";
if ( !standardout ) {
- if (pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if (pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
}
// remove existing type file if something goes wrong to ensure
@@ -1219,16 +1219,16 @@ void generateCalcAddin(ProgramOptions const & options,
generateCompFunctions(*pofs, nmspace);
- if ( !standardout && pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if ( !standardout && pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, false));
}
} catch (CannotDumpException & e) {
std::cerr << "ERROR: " << e.getMessage() << "\n";
if ( !standardout ) {
- if (pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if (pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
}
// remove existing type file if something goes wrong to ensure
diff --git a/unodevtools/source/skeletonmaker/javacompskeleton.cxx b/unodevtools/source/skeletonmaker/javacompskeleton.cxx
index 44c9201b4ee5..8edb92ca6f0d 100644
--- a/unodevtools/source/skeletonmaker/javacompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/javacompskeleton.cxx
@@ -911,16 +911,16 @@ void generateSkeleton(ProgramOptions const & options,
interfaces, properties, attributes, propertyhelper,
supportxcomponent);
- if ( !standardout && pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if ( !standardout && pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, false));
}
} catch (CannotDumpException & e) {
std::cerr << "ERROR: " << e.getMessage() << "\n";
if ( !standardout ) {
- if (pofs && ((std::ofstream*)pofs)->is_open()) {
- ((std::ofstream*)pofs)->close();
+ if (pofs && static_cast<std::ofstream*>(pofs)->is_open()) {
+ static_cast<std::ofstream*>(pofs)->close();
delete pofs;
}
// remove existing type file if something goes wrong to ensure