r23680 by jghali - Add default initializer for PageItem_NoteFrame's deleteIt member
scribus-commit
scribus-commit at lists.scribus.net
Sun May 3 15:49:18 UTC 2020
Author: jghali
Date: Sun May 3 15:49:18 2020
New Revision: 23680
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23680
Log:
Add default initializer for PageItem_NoteFrame's deleteIt member
Modified:
trunk/Scribus/scribus/pageitem_noteframe.cpp
trunk/Scribus/scribus/pageitem_noteframe.h
Modified: trunk/Scribus/scribus/pageitem_noteframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23680&path=/trunk/Scribus/scribus/pageitem_noteframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_noteframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_noteframe.cpp Sun May 3 15:49:18 2020
@@ -58,14 +58,12 @@
m_SizeLocked = true;
else
m_SizeLocked = false;
- deleteIt = false;
}
PageItem_NoteFrame::PageItem_NoteFrame(ScribusDoc *doc, double x, double y, double w, double h, double w2, const QString& fill, const QString& outline)
: PageItem_TextFrame(doc, x, y, w, h, w2, fill, outline)
{
m_textFlowMode = TextFlowUsesFrameShape;
- deleteIt = false;
}
PageItem_NoteFrame::PageItem_NoteFrame(PageItem_TextFrame* inFrame, NotesStyle *nStyle) : PageItem_TextFrame(inFrame->doc(),inFrame->xPos(), inFrame->yPos(),inFrame->width(), inFrame->height(),inFrame->lineWidth(), inFrame->fillColor(), inFrame->lineColor())
@@ -127,7 +125,6 @@
m_SizeLocked = true;
else
m_SizeLocked = false;
- deleteIt = false;
}
void PageItem_NoteFrame::getNamedResources(ResourceCollection& lists) const
Modified: trunk/Scribus/scribus/pageitem_noteframe.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23680&path=/trunk/Scribus/scribus/pageitem_noteframe.h
==============================================================================
--- trunk/Scribus/scribus/pageitem_noteframe.h (original)
+++ trunk/Scribus/scribus/pageitem_noteframe.h Sun May 3 15:49:18 2020
@@ -28,7 +28,7 @@
void replaceNamedResources(ResourceCollection& newNames) override;
//indicate if noteframe should be deleted
- bool deleteIt;
+ bool deleteIt { false };
//used while reading SLA file
void setNoteStyle(NotesStyle* nStyle, PageItem_TextFrame* master = nullptr);
More information about the scribus-commit
mailing list