mirror of https://github.com/odrling/Aegisub
Add some const-ness to the kana table, should fix compiler warnings on GCC.
Originally committed to SVN as r3293.
This commit is contained in:
parent
c28b51d904
commit
696ae74f8a
|
@ -34,16 +34,13 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
///////////
|
|
||||||
// Headers
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "kana_table.h"
|
#include "kana_table.h"
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
KanaTable::KanaTable()
|
||||||
// Constructor
|
{
|
||||||
KanaTable::KanaTable() {
|
|
||||||
|
|
||||||
// Regular kana usage and combinations
|
// Regular kana usage and combinations
|
||||||
|
|
||||||
|
@ -273,10 +270,7 @@ KanaTable::~KanaTable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////
|
void KanaTable::Insert(const wchar_t *hira, const wchar_t *kata, const wchar_t *hep)
|
||||||
// Insert
|
{
|
||||||
void KanaTable::Insert(wchar_t *hira,wchar_t *kata,wchar_t *hep) {
|
|
||||||
#ifdef _UNICODE
|
|
||||||
entries.push_back(KanaEntry(hira,kata,hep));
|
entries.push_back(KanaEntry(hira,kata,hep));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
wxString hepburn;
|
wxString hepburn;
|
||||||
|
|
||||||
KanaEntry() {}
|
KanaEntry() {}
|
||||||
KanaEntry(wxString hira,wxString kata,wxString hep) {
|
KanaEntry(const wxString &hira, const wxString &kata, const wxString &hep) {
|
||||||
hiragana = hira;
|
hiragana = hira;
|
||||||
katakana = kata;
|
katakana = kata;
|
||||||
hepburn = hep;
|
hepburn = hep;
|
||||||
|
@ -62,7 +62,7 @@ public:
|
||||||
// Hiragana/Katakana table
|
// Hiragana/Katakana table
|
||||||
class KanaTable {
|
class KanaTable {
|
||||||
private:
|
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:
|
public:
|
||||||
std::list<KanaEntry> entries;
|
std::list<KanaEntry> entries;
|
||||||
|
|
Loading…
Reference in New Issue