]> git.saurik.com Git - wxWidgets.git/commitdiff
reformatted DEFINE_STD_WXCOLOUR_CONSTRUCTORS to fit standard terminal; use wxALPHA_OP...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 4 Sep 2006 11:12:36 +0000 (11:12 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 4 Sep 2006 11:12:36 +0000 (11:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/colour.h

index 685cab9d3dd2bd40774410dc6961a47e46b537ec..78204d1843c62c982d63fb3236f7e271ddceaabd 100644 (file)
 // this macro avoids to repeat these lines across all colour.h files, since
 // Set() is a virtual function and thus cannot be called by wxColourBase
 // constructors
-#define DEFINE_STD_WXCOLOUR_CONSTRUCTORS                                                              \
-    wxColour( unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = 255 ) \
-        { Set(red, green, blue, alpha); }                                                             \
-    wxColour( unsigned long colRGB ) { Set(colRGB); }                                                 \
-    wxColour(const wxString &colourName) { Set(colourName); }                                         \
+#define DEFINE_STD_WXCOLOUR_CONSTRUCTORS                                      \
+    wxColour( unsigned char red, unsigned char green, unsigned char blue,     \
+              unsigned char alpha = wxALPHA_OPAQUE )                          \
+        { Set(red, green, blue, alpha); }                                     \
+    wxColour( unsigned long colRGB ) { Set(colRGB); }                         \
+    wxColour(const wxString &colourName) { Set(colourName); }                 \
     wxColour(const wxChar *colourName) { Set(colourName); }