Commit 61898c08 authored by twanvl's avatar twanvl

fix build on linux

parent d0ebfb28
...@@ -62,7 +62,7 @@ ValueAction* value_action(const MultipleChoiceValueP& value, const ScriptValueP& ...@@ -62,7 +62,7 @@ ValueAction* value_action(const MultipleChoiceValueP& value, const ScriptValueP&
class MultipleChoiceValueAction : public ValueAction { class MultipleChoiceValueAction : public ValueAction {
public: public:
inline MultipleChoiceValueAction(const ValueP& value, const ScriptValueP& new_value, const String& changed_choice) inline MultipleChoiceValueAction(const ValueP& value, const ScriptValueP& new_value, const String& changed_choice)
: ValueAction(value), new_value(new_value), changed_choice(changed_choice) : ValueAction(value), changed_choice(changed_choice), new_value(new_value)
{} {}
virtual void perform(bool to_undo); virtual void perform(bool to_undo);
......
...@@ -27,11 +27,10 @@ IMPLEMENT_FIELD_TYPE(Choice, "choice"); ...@@ -27,11 +27,10 @@ IMPLEMENT_FIELD_TYPE(Choice, "choice");
IMPLEMENT_REFLECTION(ChoiceField) { IMPLEMENT_REFLECTION(ChoiceField) {
REFLECT_BASE(AnyField); REFLECT_BASE(AnyField);
REFLECT_N("choices", choices->choices); REFLECT_N("choices", choices->choices);
REFLECT_IF_READING {
}
REFLECT(choice_colors); REFLECT(choice_colors);
REFLECT(choice_colors_cardlist); REFLECT(choice_colors_cardlist);
} }
void ChoiceField::after_reading(Version ver) { void ChoiceField::after_reading(Version ver) {
AnyField::after_reading(ver); AnyField::after_reading(ver);
choices->initIds(); choices->initIds();
......
...@@ -355,8 +355,7 @@ class BuiltInImage : public GeneratedImage { ...@@ -355,8 +355,7 @@ class BuiltInImage : public GeneratedImage {
/// Use a symbol as an image /// Use a symbol as an image
class SymbolToImage : public GeneratedImage { class SymbolToImage : public GeneratedImage {
public: public:
SymbolToImage(const SymbolToImage& symbol, const SymbolVariationP& variation); SymbolToImage(bool is_local, const LocalFileName& filename, const SymbolVariationP& variation);
SymbolToImage(bool is_local, const LocalFileName& filename, const SymbolVariationP& variation = SymbolVariationP());
~SymbolToImage(); ~SymbolToImage();
virtual Image generate(const Options& opt) const; virtual Image generate(const Options& opt) const;
virtual bool operator == (const GeneratedImage& that) const; virtual bool operator == (const GeneratedImage& that) const;
......
...@@ -389,11 +389,11 @@ END_EVENT_TABLE() ...@@ -389,11 +389,11 @@ END_EVENT_TABLE()
ConsolePanel::ConsolePanel(Window* parent, int id) ConsolePanel::ConsolePanel(Window* parent, int id)
: SetWindowPanel(parent, id) : SetWindowPanel(parent, id)
, messages(nullptr)
, entry(nullptr)
, is_active_window(false) , is_active_window(false)
, blinker_state(0) , blinker_state(0)
, blinker_timer(this) , blinker_timer(this)
, messages(nullptr)
, entry(nullptr)
{ {
// init controls // init controls
splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
......
...@@ -131,7 +131,7 @@ inline ScriptDefault const* is_default(ScriptValueP const& x) { ...@@ -131,7 +131,7 @@ inline ScriptDefault const* is_default(ScriptValueP const& x) {
return is_default(x.get()); return is_default(x.get());
} }
inline ScriptValueP make_default(ScriptValueP const& x) { inline ScriptValueP make_default(ScriptValueP const& x) {
return is_default(x) ? x : intrusive(new ScriptDefault(x)); return is_default(x) ? x : intrusive_ptr<ScriptValue>(new ScriptDefault(x));
} }
inline ScriptValueP with_defaultness_of(ScriptValueP const& of, ScriptValueP const& x) { inline ScriptValueP with_defaultness_of(ScriptValueP const& of, ScriptValueP const& x) {
return is_default(of) ? make_default(x) : x; return is_default(of) ? make_default(x) : x;
......
...@@ -351,7 +351,7 @@ LocalFileName LocalFileName::fromReadString(String const& fn, String const& pref ...@@ -351,7 +351,7 @@ LocalFileName LocalFileName::fromReadString(String const& fn, String const& pref
return local_name; return local_name;
} catch (Error) { } catch (Error) {
// ignore errors // ignore errors
return _(""); return LocalFileName();
} }
} else { } else {
return LocalFileName(fn); return LocalFileName(fn);
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
#define REFLECT_NAMELESS(var) reflector.handle(var) #define REFLECT_NAMELESS(var) reflector.handle(var)
/// Declare that the variables of a base class should also be reflected /// Declare that the variables of a base class should also be reflected
#define REFLECT_BASE(Base) Base::reflect_impl(reflector) #define REFLECT_BASE(Base) Base::reflect(reflector)
/// Reflect a group of declarations only when reading /// Reflect a group of declarations only when reading
/** Usage: /** Usage:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment