[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krecipes] src/backends: Fix initialization order warning.
From:       José_Manuel_Santamaría_Lema <panfaust () gmail ! com>
Date:       2016-07-14 19:07:24
Message-ID: E1bNlym-0004u2-2w () code ! kde ! org
[Download RAW message or body]

Git commit e6a6fc9560f64a87065b1cb2c43e282b3dabbfe9 by Jos=C3=A9 Manuel San=
tamar=C3=ADa Lema.
Committed on 14/07/2016 at 19:06.
Pushed by joselema into branch 'master'.

Fix initialization order warning.

M  +3    -2    src/backends/recipedb.cpp

http://commits.kde.org/krecipes/e6a6fc9560f64a87065b1cb2c43e282b3dabbfe9

diff --git a/src/backends/recipedb.cpp b/src/backends/recipedb.cpp
index 1ba0d7e..5afd91d 100644
--- a/src/backends/recipedb.cpp
+++ b/src/backends/recipedb.cpp
@@ -60,9 +60,10 @@ struct ingredient_nutrient_data
 };
 =

 RecipeDB::RecipeDB() :
-	QObject(), m_categoryCache(0), haltOperation(false), process(NULL),
+	QObject(), m_categoryCache(0),
 	m_allIngredientsModels(0),
-	m_allIngHeadersModels(0)
+	m_allIngHeadersModels(0),
+	haltOperation(false), process(NULL)
 {
 	new KrecipesdbAdaptor( this );
 	QDBusConnection::sessionBus().registerObject("/KrecipesDB", this);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic