From fafb2b05314c0b4166c58a77ca9a4482681718be Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Jun 2008 23:38:11 +0000 Subject: [PATCH] overload Write() for char and unsigned char too, otherwise code writing them fails due to lack of exact match and absence of overloaded wxToString() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/confbase.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wx/confbase.h b/include/wx/confbase.h index 5192df40db..91871da380 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -276,6 +276,12 @@ public: // we also have to provide specializations for other types which we want to // handle using the specialized DoWriteXXX() instead of the generic template // version below + bool Write(const wxString& key, char value) + { return DoWriteLong(key, value); } + + bool Write(const wxString& key, unsigned char value) + { return DoWriteLong(key, value); } + bool Write(const wxString& key, short value) { return DoWriteLong(key, value); }