summaryrefslogtreecommitdiffstats
path: root/src/dialogs/dietwizarddialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-22 12:59:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-02-03 22:37:57 +0900
commitf6082cf0a5a2d044400fbdc99cb5747589f31889 (patch)
treeb655f92d73cd1fd6cf363ddbcf64c5fe471490a7 /src/dialogs/dietwizarddialog.cpp
parent6d9717eb18526dc2e204ac49a68e35406e442083 (diff)
downloadkrecipes-f6082cf0a5a2d044400fbdc99cb5747589f31889.tar.gz
krecipes-f6082cf0a5a2d044400fbdc99cb5747589f31889.zip
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/dialogs/dietwizarddialog.cpp')
-rw-r--r--src/dialogs/dietwizarddialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/dietwizarddialog.cpp b/src/dialogs/dietwizarddialog.cpp
index 30414cf..52f6758 100644
--- a/src/dialogs/dietwizarddialog.cpp
+++ b/src/dialogs/dietwizarddialog.cpp
@@ -207,7 +207,7 @@ void DietWizardDialog::createDiet( void )
bool found = false;
TQValueList <RecipeList::Iterator> tempDishRList = tempRList;
while ( ( !found ) && !tempDishRList.empty() ) {
- int random_index = ( int ) ( ( float ) ( kapp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
+ int random_index = ( int ) ( ( float ) ( tdeApp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
TQValueList<RecipeList::Iterator>::Iterator iit = tempDishRList.at( random_index ); // note that at() retrieves an iterator to the iterator list, so we need to use * in order to get the RecipeList::Iterator
RecipeList::Iterator rit = *iit;