summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 5655da7e421..6d4ff64d2f6 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -3516,7 +3516,7 @@ Slice::Unit::setComment(const string& comment)
string
Slice::Unit::currentComment()
{
- string comment;
+ string comment = "";
comment.swap(_currentComment);
return comment;
}
@@ -3600,7 +3600,7 @@ Slice::Unit::scanPosition(const char* s)
{
--_currentIncludeLevel;
}
- _currentComment.erase();
+ _currentComment = "";
}
else
{