mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Compiles again under MSW after porting changes for linux
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@186 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -79,7 +79,7 @@ void CardListColumnSelectDialog::initList() {
|
||||
// check
|
||||
int i = list->GetCount() - 1;
|
||||
list->Check(i, c.settings.visible);
|
||||
#ifdef _WX_MSW_
|
||||
#ifdef __WXMSW__
|
||||
// fix the background color
|
||||
list->GetItem(i)->SetBackgroundColour(window_color);
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
class ValueEditor {
|
||||
public:
|
||||
virtual ~ValueEditor();
|
||||
virtual ~ValueEditor() {}
|
||||
// --------------------------------------------------- : Events
|
||||
|
||||
/// This editor gains focus
|
||||
|
||||
+4
-1
@@ -1178,7 +1178,7 @@
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||
<File
|
||||
RelativePath=".\resource\mse.rc">
|
||||
RelativePath=".\resource\msw\mse.rc">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
@@ -1627,6 +1627,9 @@
|
||||
<Filter
|
||||
Name="util"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath=".\util\atomic.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\util\dynamic_arg.hpp">
|
||||
</File>
|
||||
|
||||
@@ -37,11 +37,6 @@ enum ScriptType
|
||||
/// Actual values are derived types
|
||||
class ScriptValue : public IntrusivePtrBase {
|
||||
public:
|
||||
inline ScriptValue()
|
||||
#ifdef USE_INTRUSIVE_PTR
|
||||
: refCount(0)
|
||||
#endif
|
||||
{}
|
||||
virtual ~ScriptValue() {}
|
||||
|
||||
/// Information on the type of this value
|
||||
|
||||
+2
-2
@@ -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.c_str(), package.c_str()))
|
||||
: PackageError(_ERROR_2_("file not found", file, package))
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -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.c_str(), err.c_str()))
|
||||
ParseError(_ERROR_2_("file parse error", file, err))
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -10,11 +10,10 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <script/value.hpp>
|
||||
|
||||
DECLARE_INTRUSIVE_POINTER_TYPE(ScriptValue);
|
||||
DECLARE_INTRUSIVE_POINTER_TYPE(Script);
|
||||
inline void intrusive_ptr_add_ref(ScriptValue* p);
|
||||
inline void intrusive_ptr_release(ScriptValue* p);
|
||||
|
||||
template <typename T> class Defaultable;
|
||||
template <typename T> class Scriptable;
|
||||
|
||||
+2
-2
@@ -79,10 +79,10 @@ inline String format_string(const String& format, ...) {
|
||||
va_end(args);
|
||||
}
|
||||
inline String format_string(const String& format, const String& a0) {
|
||||
return format_string(format, a0.c_str());
|
||||
return String::Format(format, a0.c_str());
|
||||
}
|
||||
inline String format_string(const String& format, const String& a0, const String& a1) {
|
||||
return format_string(format, a0.c_str(), a1.c_str());
|
||||
return String::Format(format, a0.c_str(), a1.c_str());
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
@@ -105,14 +105,15 @@ inline shared_ptr<T> new_shared7(const A0& a0, const A1& a1, const A2& a2, const
|
||||
/// Base class for objects wishing to use intrusive_ptrs
|
||||
class IntrusivePtrBase {
|
||||
public:
|
||||
virtual ~IntrusivePtrBase();
|
||||
inline IntrusivePtrBase() : ref_count(0) {}
|
||||
virtual ~IntrusivePtrBase() {}
|
||||
protected:
|
||||
/// Delete this object
|
||||
virtual void destroy() {
|
||||
delete this;
|
||||
}
|
||||
private:
|
||||
volatile AtomicInt ref_count;
|
||||
AtomicInt ref_count;
|
||||
friend void intrusive_ptr_add_ref(IntrusivePtrBase*);
|
||||
friend void intrusive_ptr_release(IntrusivePtrBase*);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user