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
a754df74
Commit
a754df74
authored
Mar 24, 2011
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't commit code that doesn't compile
parent
a3476266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/data/field.cpp
src/data/field.cpp
+10
-1
No files found.
src/data/field.cpp
View file @
a754df74
...
@@ -331,6 +331,14 @@ ScriptValueP parse_script_value(String const& str) {
...
@@ -331,6 +331,14 @@ ScriptValueP parse_script_value(String const& str) {
return
script_nil
;
return
script_nil
;
}
}
/// A filename in the current set
/// functions differently wrt. garbage collection
/*class ScriptLocalFileName : public ScriptString {
public:
ScriptLocalFileName(String const& filename) : ScriptString(filename) {}
// TODO!
};*/
void
AnyValue
::
reflect
(
Reader
&
reflector
)
{
void
AnyValue
::
reflect
(
Reader
&
reflector
)
{
if
(
reflector
.
formatVersion
()
<
200001
)
{
if
(
reflector
.
formatVersion
()
<
200001
)
{
// in older versions, the format was based on the type of the field
// in older versions, the format was based on the type of the field
...
@@ -354,7 +362,8 @@ void AnyValue::reflect(Reader& reflector) {
...
@@ -354,7 +362,8 @@ void AnyValue::reflect(Reader& reflector) {
// image, symbol fields: string that is a filename in the set
// image, symbol fields: string that is a filename in the set
String
str
;
String
str
;
reflector
.
handle
(
str
);
reflector
.
handle
(
str
);
value
=
intrusive
(
new
ScriptLocalFileName
(
str
));
//value = intrusive(new ScriptLocalFileName(str));
throw
"TODO"
;
}
else
if
(
dynamic_cast
<
InfoField
*>
(
field
))
{
}
else
if
(
dynamic_cast
<
InfoField
*>
(
field
))
{
// this should never happen, since info fields were not saved
// this should never happen, since info fields were not saved
}
}
...
...
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