Skip to content

Commit

Permalink
Fix issue with test 055 on Cygwin
Browse files Browse the repository at this point in the history
- stored value was overwritten probably due to compiler optimisation bug
  • Loading branch information
doxygen committed Apr 25, 2021
1 parent 3d98227 commit 5131683
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/markdown.cpp
Expand Up @@ -265,9 +265,7 @@ static void convertStringFragment(QCString &result,const char *data,int size)
{
TRACE(result);
if (size<0) size=0;
result.resize(size+1);
memcpy(result.rawData(),data,size);
result.at(size)='\0';
result = QCString(data,(uint)size);
}

/** helper function to convert presence of left and/or right alignment markers
Expand Down
2 changes: 0 additions & 2 deletions src/qcstring.h
Expand Up @@ -132,8 +132,6 @@ class QCString
/** creates a string from \a str and copies over the first \a maxlen characters. */
QCString( const char *str, uint maxlen ) : m_rep(str?str:"") { m_rep.resize(maxlen); }

/** replaces the contents by that of string \a s. */

/** replaces the contents by that of C string \a str. */
QCString &operator=( const char *str) { m_rep = str?str:""; return *this; }

Expand Down

0 comments on commit 5131683

Please sign in to comment.