From 5a5b61fa8085a8c5eec59614834cb882d1d778e2 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 20:54:25 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-bool-literal?= =?UTF-8?q?s=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it clearer whether an integer or a boolean has to be passed in this specific call. --- src/selection-chemistry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 3ecefadde..2108db35a 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -805,7 +805,7 @@ void ObjectSet::popFromGroup(){ sp_item_group_ungroup(static_cast(parent_group), children, false); } else { - toNextLayer(1); + toNextLayer(true); } parent_group->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); @@ -3064,8 +3064,8 @@ void ObjectSet::toGuides() } Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool deleteitems = !prefs->getBool("/tools/cvg_keep_objects", 0); - bool wholegroups = prefs->getBool("/tools/cvg_convert_whole_groups", 0); + bool deleteitems = !prefs->getBool("/tools/cvg_keep_objects", false); + bool wholegroups = prefs->getBool("/tools/cvg_convert_whole_groups", false); // If an object is earlier in the selection list than its clone, and it is deleted, then the clone will have changed // and its entry in the selection list is invalid (crash). -- cgit v1.2.3