Skip to content

Commit

Permalink
[build] Move assignment out of condition (clang warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 4, 2013
1 parent c373b8f commit 6c05339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/cached_string.cpp
Expand Up @@ -439,8 +439,8 @@ void MaybeCachedString::assign( const string& str )
void MaybeCachedString::assign( const MaybeCachedString& other )
{
reset();
if(cached = other.cached)
{
cached = other.cached;
if (cached) {
internalString = other.internalString;
} else {
internalString = new StringStorageElement(*other.internalString);
Expand Down Expand Up @@ -552,4 +552,4 @@ void MaybeCachedString::reset()
bool MaybeCachedString::isCached() const
{
return cached;
}
}

0 comments on commit 6c05339

Please sign in to comment.