Add a bit of const-ness to the kana_table, which should make GCC happier.

Originally committed to SVN as r5542.
This commit is contained in:
Niels Martin Hansen 2011-08-20 15:58:00 +00:00
parent 0c6ff678bc
commit 3c50064d81
2 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ KanaTable::~KanaTable()
//////////
// Insert
void KanaTable::Insert(wchar_t *hira,wchar_t *kata,wchar_t *hep) {
void KanaTable::Insert(const wchar_t *hira, const wchar_t *kata, const wchar_t *hep) {
#ifdef _UNICODE
entries.push_back(KanaEntry(hira,kata,hep));
#endif

View File

@ -50,7 +50,7 @@ public:
wxString hepburn;
KanaEntry() {}
KanaEntry(wxString hira,wxString kata,wxString hep) {
KanaEntry(const wxString &hira, const wxString &kata, const wxString &hep) {
hiragana = hira;
katakana = kata;
hepburn = hep;
@ -62,7 +62,7 @@ public:
// Hiragana/Katakana table
class KanaTable {
private:
void Insert(wchar_t *hira,wchar_t *kata,wchar_t *hep);
void Insert(const wchar_t *hira, const wchar_t *kata, const wchar_t *hep);
public:
std::list<KanaEntry> entries;