[gtkmm/wip/dboles/rgba-construct-doubles-4: 1/2] Gdk::RGBA: Delegate constructors instead of repeat
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/wip/dboles/rgba-construct-doubles-4: 1/2] Gdk::RGBA: Delegate constructors instead of repeat
- Date: Sun, 16 Dec 2018 20:15:34 +0000 (UTC)
commit ca99aaf9cfcdbda9cf8189546a83192045048dd1
Author: Daniel Boles <dboles src gmail com>
Date: Sat Dec 8 13:17:26 2018 +0000
Gdk::RGBA: Delegate constructors instead of repeat
Instead of repeating the same stanza as RGBA(), just delegate to/call it
gdk/src/rgba.ccg | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gdk/src/rgba.ccg b/gdk/src/rgba.ccg
index fd292897..e8bede6b 100644
--- a/gdk/src/rgba.ccg
+++ b/gdk/src/rgba.ccg
@@ -30,10 +30,8 @@ RGBA::RGBA()
}
RGBA::RGBA(const Glib::ustring& value)
+: RGBA()
{
- GdkRGBA tmp = { 0, 0, 0, 0, };
- gobject_ = gdk_rgba_copy(&tmp);
-
set(value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]