diff options
Diffstat (limited to 'src/mongo/util/thread_safe_string.h')
-rw-r--r-- | src/mongo/util/thread_safe_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/thread_safe_string.h b/src/mongo/util/thread_safe_string.h index e80ea305e7c..b34315c1967 100644 --- a/src/mongo/util/thread_safe_string.h +++ b/src/mongo/util/thread_safe_string.h @@ -57,7 +57,7 @@ namespace mongo { return _buf; } - ThreadSafeString& operator=( const StringData& str ) { + ThreadSafeString& operator=( StringData str ) { size_t s = str.size(); if ( s >= _size - 2 ) s = _size - 2; |