From cc79a7fd35ba7981c10f43a30191fd09f98d04b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 16:57:19 +0200 Subject: Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 564548309f2fac225d85210f2fad1a7cd677212a) --- kig/filters/native-filter.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kig/filters/native-filter.cc') 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 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 -- cgit v1.2.1