Fixed compilation errors for gcc@linux (not all yet).

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@181 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-01-28 19:13:01 +00:00
parent d96d150138
commit fc03b5efa1
15 changed files with 159 additions and 71 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ class Error {
class InternalError : public Error {
public:
inline InternalError(const String& str)
: Error(_ERROR_1_("internal error",str))
: Error(_ERROR_1_("internal error", str.c_str()))
{}
};
@@ -52,7 +52,7 @@ class PackageError : public Error {
class FileNotFoundError : public PackageError {
public:
inline FileNotFoundError(const String& file, const String& package)
: PackageError(_ERROR_2_("file not found",file,package))
: PackageError(_ERROR_2_("file not found", file.c_str(), package.c_str()))
{}
};
@@ -68,7 +68,7 @@ class ParseError : public Error {
class FileParseError : public ParseError {
public:
inline FileParseError(const String& err, const String& file) :
ParseError(_ERROR_2_("file parse error",file,err))
ParseError(_ERROR_2_("file parse error", file.c_str(), err.c_str()))
{}
};