Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
61898c08
Commit
61898c08
authored
Mar 20, 2012
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build on linux
parent
d0ebfb28
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
10 deletions
+8
-10
src/data/action/value.hpp
src/data/action/value.hpp
+1
-1
src/data/field/choice.cpp
src/data/field/choice.cpp
+1
-2
src/gfx/generated_image.hpp
src/gfx/generated_image.hpp
+1
-2
src/gui/set/console_panel.cpp
src/gui/set/console_panel.cpp
+2
-2
src/script/to_value.hpp
src/script/to_value.hpp
+1
-1
src/util/io/package.cpp
src/util/io/package.cpp
+1
-1
src/util/reflect.hpp
src/util/reflect.hpp
+1
-1
No files found.
src/data/action/value.hpp
View file @
61898c08
...
...
@@ -62,7 +62,7 @@ ValueAction* value_action(const MultipleChoiceValueP& value, const ScriptValueP&
class
MultipleChoiceValueAction
:
public
ValueAction
{
public:
inline
MultipleChoiceValueAction
(
const
ValueP
&
value
,
const
ScriptValueP
&
new_value
,
const
String
&
changed_choice
)
:
ValueAction
(
value
),
new_value
(
new_value
),
changed_choice
(
changed_choic
e
)
:
ValueAction
(
value
),
changed_choice
(
changed_choice
),
new_value
(
new_valu
e
)
{}
virtual
void
perform
(
bool
to_undo
);
...
...
src/data/field/choice.cpp
View file @
61898c08
...
...
@@ -27,11 +27,10 @@ IMPLEMENT_FIELD_TYPE(Choice, "choice");
IMPLEMENT_REFLECTION
(
ChoiceField
)
{
REFLECT_BASE
(
AnyField
);
REFLECT_N
(
"choices"
,
choices
->
choices
);
REFLECT_IF_READING
{
}
REFLECT
(
choice_colors
);
REFLECT
(
choice_colors_cardlist
);
}
void
ChoiceField
::
after_reading
(
Version
ver
)
{
AnyField
::
after_reading
(
ver
);
choices
->
initIds
();
...
...
src/gfx/generated_image.hpp
View file @
61898c08
...
...
@@ -355,8 +355,7 @@ class BuiltInImage : public GeneratedImage {
/// Use a symbol as an image
class
SymbolToImage
:
public
GeneratedImage
{
public:
SymbolToImage
(
const
SymbolToImage
&
symbol
,
const
SymbolVariationP
&
variation
);
SymbolToImage
(
bool
is_local
,
const
LocalFileName
&
filename
,
const
SymbolVariationP
&
variation
=
SymbolVariationP
());
SymbolToImage
(
bool
is_local
,
const
LocalFileName
&
filename
,
const
SymbolVariationP
&
variation
);
~
SymbolToImage
();
virtual
Image
generate
(
const
Options
&
opt
)
const
;
virtual
bool
operator
==
(
const
GeneratedImage
&
that
)
const
;
...
...
src/gui/set/console_panel.cpp
View file @
61898c08
...
...
@@ -389,11 +389,11 @@ END_EVENT_TABLE()
ConsolePanel
::
ConsolePanel
(
Window
*
parent
,
int
id
)
:
SetWindowPanel
(
parent
,
id
)
,
messages
(
nullptr
)
,
entry
(
nullptr
)
,
is_active_window
(
false
)
,
blinker_state
(
0
)
,
blinker_timer
(
this
)
,
messages
(
nullptr
)
,
entry
(
nullptr
)
{
// init controls
splitter
=
new
wxSplitterWindow
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
...
...
src/script/to_value.hpp
View file @
61898c08
...
...
@@ -131,7 +131,7 @@ inline ScriptDefault const* is_default(ScriptValueP const& x) {
return
is_default
(
x
.
get
());
}
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
)
{
return
is_default
(
of
)
?
make_default
(
x
)
:
x
;
...
...
src/util/io/package.cpp
View file @
61898c08
...
...
@@ -351,7 +351,7 @@ LocalFileName LocalFileName::fromReadString(String const& fn, String const& pref
return
local_name
;
}
catch
(
Error
)
{
// ignore errors
return
_
(
""
);
return
LocalFileName
(
);
}
}
else
{
return
LocalFileName
(
fn
);
...
...
src/util/reflect.hpp
View file @
61898c08
...
...
@@ -110,7 +110,7 @@
#define REFLECT_NAMELESS(var) reflector.handle(var)
/// 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
/** Usage:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment