summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 18:54:25 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 18:54:25 +0000
commit5a5b61fa8085a8c5eec59614834cb882d1d778e2 (patch)
tree848df1de494bcdae296dcaf1de4a164cbaaec780 /src/selection-chemistry.cpp
parentRun clang-tidy’s modernize-pass-by-value pass. (diff)
downloadinkscape-5a5b61fa8085a8c5eec59614834cb882d1d778e2.tar.gz
inkscape-5a5b61fa8085a8c5eec59614834cb882d1d778e2.zip
Run clang-tidy’s modernize-use-bool-literals pass.
This makes it clearer whether an integer or a boolean has to be passed in this specific call.
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp6
1 files changed, 3 insertions, 3 deletions
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<SPGroup*>(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).