aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 23:55:43 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 23:55:43 +0000
commit794298063de40a6837736f9d928d28c2d6712a73 (patch)
tree58f559dc8b28cf481a6d0128ff64b350603b3f77 /util.h
parentbcd27140384ec3703f3fd18ec89b0046a0ef17d3 (diff)
downloadbitcoin-794298063de40a6837736f9d928d28c2d6712a73.tar.xz
safer wxGetTranslation wrapper
Diffstat (limited to 'util.h')
-rw-r--r--util.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/util.h b/util.h
index 188a9ece14..8aed902f3f 100644
--- a/util.h
+++ b/util.h
@@ -136,6 +136,7 @@ bool ParseMoney(const char* pszIn, int64& nRet);
vector<unsigned char> ParseHex(const char* psz);
vector<unsigned char> ParseHex(const std::string& str);
void ParseParameters(int argc, char* argv[]);
+const char* wxGetTranslation(const char* psz);
int GetFilesize(FILE* file);
void GetDataDir(char* pszDirRet);
string GetDataDir();
@@ -340,11 +341,9 @@ void skipspaces(T& it)
++it;
}
-inline const char* wxGetTranslation(const char* psz)
-{
- // Return translated UTF-8 const char*
- return wxGetTranslation(wxString(psz, wxConvUTF8)).utf8_str();
-}
+
+
+