summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker/javacompskeleton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools/source/skeletonmaker/javacompskeleton.cxx')
-rw-r--r--unodevtools/source/skeletonmaker/javacompskeleton.cxx8
1 files changed, 4 insertions, 4 deletions
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