Commit 0c32575a authored by Patrick Storz's avatar Patrick Storz 🦄

Remove C++11 language elements

see
  ad484e4c
and
  840d975a
parent 3d36f0d7
Pipeline #31727273 passed with stages
in 10 minutes and 5 seconds
...@@ -501,7 +501,7 @@ Writer &BasicWriter::writeChar(char ch) ...@@ -501,7 +501,7 @@ Writer &BasicWriter::writeChar(char ch)
*/ */
Writer &BasicWriter::writeUString(Glib::ustring &str) Writer &BasicWriter::writeUString(Glib::ustring &str)
{ {
for (auto it = str.begin(); it != str.end(); it++) { for (Glib::ustring::iterator it = str.begin(); it != str.end(); it++) {
put(*it); put(*it);
} }
return *this; return *this;
......
...@@ -325,7 +325,7 @@ sp_ui_close_view(GtkWidget */*widget*/) ...@@ -325,7 +325,7 @@ sp_ui_close_view(GtkWidget */*widget*/)
INKSCAPE.get_all_desktops(desktops); INKSCAPE.get_all_desktops(desktops);
if (desktops.size() == 1) { if (desktops.size() == 1) {
Glib::ustring templateUri = sp_file_default_template_uri(); Glib::ustring templateUri = sp_file_default_template_uri();
SPDocument *doc = SPDocument::createNewDoc( templateUri.empty() ? nullptr : templateUri.c_str(), TRUE, true ); SPDocument *doc = SPDocument::createNewDoc( templateUri.empty() ? NULL : templateUri.c_str(), TRUE, true );
// Set viewBox if it doesn't exist // Set viewBox if it doesn't exist
if (!doc->getRoot()->viewBox_set) { if (!doc->getRoot()->viewBox_set) {
doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc->getDisplayUnit()), doc->getHeight().value(doc->getDisplayUnit()))); doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc->getDisplayUnit()), doc->getHeight().value(doc->getDisplayUnit())));
......
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