diff options
Diffstat (limited to 'src/libs/client/Serializer.cpp')
-rw-r--r-- | src/libs/client/Serializer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp index 92b0ad41..a1d5cc03 100644 --- a/src/libs/client/Serializer.cpp +++ b/src/libs/client/Serializer.cpp @@ -70,7 +70,6 @@ Serializer::start_to_filename(const string& filename) _base_uri = "file://" + filename; _model = new RDF::Model(_world); _mode = TO_FILE; - _filename = filename; } @@ -89,7 +88,6 @@ Serializer::start_to_string() _base_uri = ""; _model = new RDF::Model(_world); _mode = TO_STRING; - _filename = ""; } @@ -104,11 +102,11 @@ Serializer::finish() string ret = ""; if (_mode == TO_FILE) - _model->serialize_to_file(_filename); + _model->serialize_to_file(_base_uri); else ret = _model->serialize_to_string(); - _filename = ""; + _base_uri = ""; _node_map.clear(); return ret; |