Commit 51b57ddf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Initialize variable in header class

parent 5c66cb39
Pipeline #34728 passed with stage
in 6 minutes and 31 seconds
...@@ -23,8 +23,8 @@ class Q_DECL_HIDDEN Blog::Private ...@@ -23,8 +23,8 @@ class Q_DECL_HIDDEN Blog::Private
QDateTime published; QDateTime published;
QDateTime updated; QDateTime updated;
QUrl url; QUrl url;
uint postsCount; uint postsCount = 0;
uint pagesCount; uint pagesCount = 0;
QString language; QString language;
QString languageVariant; QString languageVariant;
QString country; QString country;
...@@ -32,8 +32,6 @@ class Q_DECL_HIDDEN Blog::Private ...@@ -32,8 +32,6 @@ class Q_DECL_HIDDEN Blog::Private
}; };
Blog::Private::Private() Blog::Private::Private()
: postsCount(0)
, pagesCount(0)
{ {
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment