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/ui/dialog/clonetiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/dialog/clonetiler.cpp') diff --git a/src/ui/dialog/clonetiler.cpp b/src/ui/dialog/clonetiler.cpp index c1998249d..3346dd595 100644 --- a/src/ui/dialog/clonetiler.cpp +++ b/src/ui/dialog/clonetiler.cpp @@ -919,7 +919,7 @@ CloneTiler::CloneTiler () : { auto b = Gtk::manage(new Gtk::CheckButton(_("Color"))); - bool old = prefs->getBool(prefs_path + "pick_to_color", 0); + bool old = prefs->getBool(prefs_path + "pick_to_color", false); b->set_active(old); b->set_tooltip_text(_("Each clone is painted by the picked color (the original must have unset fill or stroke)")); table_attach (table, b, 0.0, 1, 2); @@ -928,7 +928,7 @@ CloneTiler::CloneTiler () : { auto b = Gtk::manage(new Gtk::CheckButton(_("Opacity"))); - bool old = prefs->getBool(prefs_path + "pick_to_opacity", 0); + bool old = prefs->getBool(prefs_path + "pick_to_opacity", false); b->set_active(old); b->set_tooltip_text(_("Each clone's opacity is determined by the picked value in that point")); table_attach (table, b, 0.0, 2, 2); -- cgit v1.2.3