]> git.saurik.com Git - wxWidgets.git/commitdiff
yet another variation on the same theme: wxMAKE_ART_ID_FROM_STR
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 20 Aug 2002 22:27:54 +0000 (22:27 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 20 Aug 2002 22:27:54 +0000 (22:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/artprov.h

index 1c9807f160377aca3fedb01d4c3574389bc20992..d9a312e0964bd740059a7a50d32a8f1473c08aad 100644 (file)
@@ -30,10 +30,10 @@ class WXDLLEXPORT wxArtProviderCache;
 typedef wxString wxArtClient;
 typedef wxString wxArtID;
 
-#define wxART_MAKE_CLIENT_ID_FROM_STR(id)  id _T("_C")
-#define wxART_MAKE_CLIENT_ID(id)           wxART_MAKE_CLIENT_ID_FROM_STR(_T(#id))
-#define wxART_MAKE_ART_ID_FROM_STR(id)     id
-#define wxART_MAKE_ART_ID(id)              wxART_MAKE_ART_ID_FROM_STR(_T(#id))
+#define wxART_MAKE_CLIENT_ID_FROM_STR(id)  (wxString(id)+_T("_C"))
+#define wxART_MAKE_CLIENT_ID(id)           _T(#id) _T("_C")
+#define wxART_MAKE_ART_ID_FROM_STR(id)     (id)
+#define wxART_MAKE_ART_ID(id)              _T(#id)
 
 // ----------------------------------------------------------------------------
 // Art clients