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

Initialize member variable.

parent c563d413
......@@ -44,6 +44,7 @@ class CourseResourcePrivate
public:
CourseResourcePrivate(ResourceManager *resourceManager)
: m_resourceManager(resourceManager)
, m_type(ResourceInterface::CourseResourceType)
, m_courseResource(nullptr)
{
}
......@@ -66,7 +67,6 @@ CourseResource::CourseResource(ResourceManager *resourceManager, const QUrl &pat
: ResourceInterface(resourceManager)
, d(new CourseResourcePrivate(resourceManager))
{
d->m_type = ResourceInterface::CourseResourceType;
d->m_path = path;
// load basic information from language file, but does not parse everything
......@@ -485,4 +485,4 @@ QDomElement CourseResource::serializedPhrase(Phrase *phrase, QDomDocument &docum
}
return phraseElement;
}
\ No newline at end of file
}
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