diff options
Diffstat (limited to 'src/importers')
-rw-r--r-- | src/importers/mxpimporter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/importers/mxpimporter.cpp b/src/importers/mxpimporter.cpp index 20fbf0f..22a4db4 100644 --- a/src/importers/mxpimporter.cpp +++ b/src/importers/mxpimporter.cpp @@ -93,8 +93,8 @@ void MXPImporter::importMXP( TQTextStream &stream ) if ( current.mid( 0, current.find( ":" ) ).simplifyWhiteSpace().lower() == "serving size" ) { //allows serving size to be loaded even if preparation time is missing int end_index; - if ( current.contains( "preparation time", FALSE ) ) - end_index = current.find( "preparation time", 0, FALSE ) - 15; + if ( current.contains( "preparation time", false ) ) + end_index = current.find( "preparation time", 0, false ) - 15; else end_index = current.length(); @@ -107,8 +107,8 @@ void MXPImporter::importMXP( TQTextStream &stream ) "the field \"Serving Size:\" is either missing or could not be detected." ) ).arg( recipe.title ) ); } - if ( current.contains( "preparation time", FALSE ) ) { - TQString prep_time = current.mid( current.find( ":", current.find( "preparation time", 0, FALSE ) ) + 1, + if ( current.contains( "preparation time", false ) ) { + TQString prep_time = current.mid( current.find( ":", current.find( "preparation time", 0, false ) ) + 1, current.length() ).stripWhiteSpace(); recipe.prepTime = TQTime( prep_time.section( ':', 0, 0 ).toInt(), prep_time.section( ':', 1, 1 ).toInt() ); kdDebug() << "Found preparation time: " << prep_time << endl; |