Commit fb362cf4 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Initialize member variable.

parent 049a1eb4
......@@ -37,7 +37,8 @@ class LanguageResourcePrivate
public:
LanguageResourcePrivate(ResourceManager *resourceManager)
: m_resourceManager(resourceManager)
, m_languageResource(0)
, m_type(ResourceInterface::LanguageResourceType)
, m_languageResource(nullptr)
{
}
......@@ -58,7 +59,6 @@ LanguageResource::LanguageResource(ResourceManager *resourceManager, const QUrl
: ResourceInterface(resourceManager)
, d(new LanguageResourcePrivate(resourceManager))
{
d->m_type = ResourceInterface::LanguageResourceType;
d->m_path = path;
// load basic information from language file, but does not parse everything
......
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