summaryrefslogtreecommitdiffstats
path: root/src/importers/mxpimporter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-23 11:11:07 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-25 12:57:45 +0900
commite3823d26a868a9ebb395f4b6e6ff874acae4b595 (patch)
treeb933885a86ba51ab080fc282537c22db7d9d59ee /src/importers/mxpimporter.cpp
parent96267a56c09f17c01d909ec8a8b60f1749782755 (diff)
downloadkrecipes-r14.1.4.tar.gz
krecipes-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d881a9b6b5bcd95524d5e2bd8aea25d89f53f404)
Diffstat (limited to 'src/importers/mxpimporter.cpp')
-rw-r--r--src/importers/mxpimporter.cpp8
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;