Commit 7d63cd03 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove return value from init() method

init() only had a return true, so no need for that at all
parent 5fd96454
......@@ -195,7 +195,7 @@ void KisDoc2::slotLoadingFinished() {
setAutoSave(KisConfig().autoSaveInterval());
}
bool KisDoc2::init()
void KisDoc2::init()
{
delete m_d->nserver;
m_d->nserver = 0;
......@@ -207,8 +207,6 @@ bool KisDoc2::init()
m_d->kraSaver = 0;
m_d->kraLoader = 0;
return true;
}
bool KisDoc2::saveNativeFormat(const QString &file)
......@@ -280,8 +278,8 @@ bool KisDoc2::loadXML(const KoXmlDocument& doc, KoStore *)
KoXmlNode node;
KisImageWSP image;
if (!init())
return false;
init();
if (doc.doctype().name() != "DOC")
return false;
root = doc.documentElement();
......@@ -384,8 +382,7 @@ bool KisDoc2::newImage(const QString& name,
{
Q_ASSERT(cs);
if (!init())
return false;
init();
KisConfig cfg;
......@@ -514,8 +511,9 @@ KisNodeSP KisDoc2::preActivatedNode() const
void KisDoc2::prepareForImport()
{
if (m_d->nserver == 0)
if (m_d->nserver == 0) {
init();
}
}
KisImageWSP KisDoc2::image() const
......
......@@ -193,7 +193,7 @@ protected slots:
private:
bool init();
void init();
private:
class UndoStack;
......
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