File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ static std::ostream& cout_ = std::cout;
7070static std::ostream& cerr_ = std::cerr;
7171#endif
7272
73- const std::string DEFAULT_EXTENSION = " obj" ;
73+ const std::string DEFAULT_EXTENSION = " . obj" ;
7474const std::string TEMP_FILE_EXTENSION = " .tmp" ;
7575
7676namespace po = boost::program_options;
@@ -94,7 +94,7 @@ void print_usage(bool suggest_help = true)
9494 << " .xml XML Property definitions and decomposition tree\n "
9595 << " .svg SVG Scalable Vector Graphics (2D floor plan)\n "
9696 << " \n "
97- << " If no output filename given, <input>. " << IfcUtil::path::from_utf8 (DEFAULT_EXTENSION) << " will be used as the output file.\n " ;
97+ << " If no output filename given, <input>" << IfcUtil::path::from_utf8 (DEFAULT_EXTENSION) << " will be used as the output file.\n " ;
9898 if (suggest_help) {
9999 cout_ << " \n Run 'IfcConvert --help' for more information." ;
100100 }
@@ -119,7 +119,7 @@ template <typename T>
119119T change_extension (const T& fn, const T& ext) {
120120 typename T::size_type dot = fn.find_last_of (' .' );
121121 if (dot != T::npos) {
122- return fn.substr (0 , dot + 1 ) + ext;
122+ return fn.substr (0 , dot) + ext;
123123 } else {
124124 return fn + ext;
125125 }
You can’t perform that action at this time.
0 commit comments