diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2021-11-20 21:06:41 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2021-11-23 12:32:16 +0000 |
commit | 4afb8f1f37ca4f197375b5303ff21284069852cf (patch) | |
tree | 419103a24905b9b6d3930802f3cc55baa8548745 /src | |
parent | 58d282e894adb7cd69b2ff2838c88462a8f4ab7e (diff) | |
download | qbs-4afb8f1f37ca4f197375b5303ff21284069852cf.tar.gz |
Fix Clang-Tidy & Clazy 'readability-redundant-string-cstr' warnings
Change-Id: Iaad3e385797dc2e26bf3d3524a0389a7b2758afa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/json/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json/json.cpp b/src/shared/json/json.cpp index c5eac719b..ffd7cbe9a 100644 --- a/src/shared/json/json.cpp +++ b/src/shared/json/json.cpp @@ -4889,7 +4889,7 @@ int Value::requiredStorage(JsonValue &v, bool *compressed) } return sizeof(double); case JsonValue::String: { - std::string s = v.toString().data(); + std::string s = v.toString(); *compressed = false; return Internal::qStringSize(s); } |