diff options
author | Ben Becker <ben.becker@10gen.com> | 2013-01-14 11:11:03 -0800 |
---|---|---|
committer | Ben Becker <ben.becker@10gen.com> | 2013-01-14 11:11:03 -0800 |
commit | a1119f9a193ef812c17012fb41a77698f9933266 (patch) | |
tree | 7d7a1a0cc36a188ad72789b2266128ff322fa3e1 /src/mongo/base/string_data.h | |
parent | 81d4655c8cb701c8a0be7e144d64361960257362 (diff) | |
download | mongo-a1119f9a193ef812c17012fb41a77698f9933266.tar.gz |
remove v8 string cache and use ForceSet() when possible.
Diffstat (limited to 'src/mongo/base/string_data.h')
-rw-r--r-- | src/mongo/base/string_data.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/base/string_data.h b/src/mongo/base/string_data.h index 86f9fd3d672..a54de185905 100644 --- a/src/mongo/base/string_data.h +++ b/src/mongo/base/string_data.h @@ -56,7 +56,7 @@ namespace mongo { /** * Constructs a StringData explicitly, for the case where the length of the string is - * already known. 'c' must be a pointer to a null-terminated string, and strlenOfc must + * already known. 'c' must be a pointer to a null-terminated string, and len must * be the length that strlen(c) would return, a.k.a the index of the terminator in c. */ StringData( const char* c, size_t len ) @@ -114,8 +114,9 @@ namespace mongo { // /** - * this is not guaranteed to be null-terminated, - * if you use this without all using size(), you are likely doing something wrong + * Get the pointer to the first byte of StringData. This is not guaranteed to be + * null-terminated, so if using this without checking size(), you are likely doing + * something wrong. */ const char* rawData() const { return _data; } |