Skip to content

Commit 0f0d94d

Browse files
committed
Revert calling clear on std::string because it does not work in VC6
1 parent bc05aae commit 0f0d94d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Core/Tools/CRCDiff/expander.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void Expander::expand( const std::string& input,
4545
std::string& output,
4646
bool stripUnknown )
4747
{
48-
output.clear();
48+
output = "";
4949
unsigned int pos = input.find(m_left);
5050
unsigned int lastpos = input.npos;
5151
while (pos != input.npos)

Core/Tools/DebugWindow/DebugWindowDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void DebugWindowDialog::_RebuildVarsString(void)
151151
{
152152
int cursorPosBeg, cursorPosEnd;
153153
((CEdit*)GetDlgItem(IDC_Variables))->GetSel(cursorPosBeg, cursorPosEnd);
154-
mVariablesString.clear();
154+
mVariablesString = "";
155155

156156
for (VecPairStringIt it = mVariables.begin(); it != mVariables.end(); it++) {
157157
mVariablesString += it->first;
@@ -170,7 +170,7 @@ void DebugWindowDialog::_RebuildVarsString(void)
170170

171171
void DebugWindowDialog::_RebuildMesgString(void)
172172
{
173-
mMessagesString.clear();
173+
mMessagesString = "";
174174

175175
for (VecStringIt it = mMessages.begin(); it != mMessages.end(); it++) {
176176
mMessagesString += (*it);

0 commit comments

Comments
 (0)