[gtkmm/gtkmm-3-24] tests/builder: Fix icon_name to const& and shorten



commit 03fddc97acc77f5ba1740274d4de256fa4965b21
Author: Daniel Boles <dboles src gmail com>
Date:   Sun Nov 24 14:00:55 2019 +0000

    tests/builder: Fix icon_name to const& and shorten
    
    …the way of declaring that it should default to a default-init’d string.
    
    It didn’t make sense to pass a const value, so make it a const reference
    as per basically everywhere else that we take string parameters.

 tests/builder/main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/builder/main.cc b/tests/builder/main.cc
index 02a80432..302562d4 100644
--- a/tests/builder/main.cc
+++ b/tests/builder/main.cc
@@ -92,7 +92,7 @@ class DerivedButton : public Gtk::Button
 {
 public:
   DerivedButton(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& /* refBuilder */,
-    const Glib::ustring icon_name = Glib::ustring())
+                const Glib::ustring& icon_name = {})
   : Gtk::Button(cobject)
   {
     std::cout << "DerivedButton::ctor" << std::endl;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]