Updated a few GCC issues, and case-sensitivity of filenames.

I had to rename the export function in Apprentice.cpp since "export" is a reserved word according to the C++ standard. I don't know whether GCC supports it yet, but it certainly complains.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@302 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-04-25 00:16:29 +00:00
parent e1c067a9a1
commit 7c40df0624
19 changed files with 61 additions and 43 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ void KeywordList::onAction(const Action& action, bool undone) {
String match_string(const Keyword& a) {
return untag(replace_all(replace_all(
a.match,
_("<atom-param>"), LEFT_ANGLE_BRACKET),
_("</atom-param>"), RIGHT_ANGLE_BRACKET)
_("<atom-param>"), _("<")),
_("</atom-param>"), _(">"))
);
}
+4
View File
@@ -49,7 +49,11 @@ NewSetWindow::NewSetWindow(Window* parent)
SetSize(630,-1);
// init lists
game_list->showData<Game>();
try {
game_list->select(settings.default_game);
} catch (FileNotFoundError e) {
handle_error(e);
}
UpdateWindowUI(wxUPDATE_UI_RECURSE);
}
+1 -1
View File
@@ -702,7 +702,7 @@ bool TextValueEditor::search(FindInfo& find, bool from_start) {
size_t selection_max = index_to_untagged(value().value(), max(selection_start_i, selection_end_i));
if (find.forward()) {
size_t start = min(v.size(), find.searchSelection() ? selection_min : selection_max);
for (size_t i = start ; i + find.findString().size()) <= v.size() ; ++i) {
for (size_t i = start ; i + find.findString().size() <= v.size() ; ++i) {
if (matchSubstr(v, i, find)) return true;
}
} else {