diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 16:57:19 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 16:57:32 +0200 |
commit | cc79a7fd35ba7981c10f43a30191fd09f98d04b3 (patch) | |
tree | bc3614a96dc36418d9d47eca05141d973aa5b6db /kig/filters/native-filter.cc | |
parent | b9c36b31669a03a049b69a5326c1fa3b51f9952b (diff) | |
download | tdeedu-cc79a7fd35ba7981c10f43a30191fd09f98d04b3.tar.gz tdeedu-cc79a7fd35ba7981c10f43a30191fd09f98d04b3.zip |
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 564548309f2fac225d85210f2fad1a7cd677212a)
Diffstat (limited to 'kig/filters/native-filter.cc')
-rw-r--r-- | kig/filters/native-filter.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kig/filters/native-filter.cc b/kig/filters/native-filter.cc index 4ffe26a6..cf6521b2 100644 --- a/kig/filters/native-filter.cc +++ b/kig/filters/native-filter.cc @@ -194,7 +194,7 @@ KigDocument* KigFilterNative::load( const TQString& file ) { notSupported( file, i18n( "This file was created by Kig version \"%1\", " "which this version cannot open." ).arg( version ) ); - return false; + return 0; } else if ( major == 0 && minor <= 3 ) { @@ -205,7 +205,7 @@ KigDocument* KigFilterNative::load( const TQString& file ) "version (0.4 to 0.6),\n" "and then save it again, which will save it in the " "new format." ).arg( version ) ); - return false; + return 0; } else if ( major == 0 && minor <= 6 ) return load04( file, main ); @@ -301,7 +301,7 @@ KigDocument* KigFilterNative::load04( const TQString& file, const TQDomElement& if ( ( !imp ) && !error.isEmpty() ) { parseError( file, error ); - return false; + return 0; } o = new ObjectConstCalcer( imp ); } @@ -339,7 +339,7 @@ KigDocument* KigFilterNative::load04( const TQString& file, const TQDomElement& "Perhaps you have compiled Kig without support " "for this object type," "or perhaps you are using an older Kig version." ).arg( tmp ) ); - return false; + return 0; }; std::vector<ObjectCalcer*> parents; @@ -459,7 +459,7 @@ KigDocument* KigFilterNative::load07( const TQString& file, const TQDomElement& if ( ( !imp ) && !error.isEmpty() ) { parseError( file, error ); - return false; + return 0; } o = new ObjectConstCalcer( imp ); } @@ -486,7 +486,7 @@ KigDocument* KigFilterNative::load07( const TQString& file, const TQDomElement& "Perhaps you have compiled Kig without support " "for this object type," "or perhaps you are using an older Kig version." ).arg( tmp ) ); - return false; + return 0; } // mp: (I take the responsibility for this!) explanation: the usual ObjectTypeCalcer |