summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-11-20 21:06:41 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-11-23 12:32:16 +0000
commit4afb8f1f37ca4f197375b5303ff21284069852cf (patch)
tree419103a24905b9b6d3930802f3cc55baa8548745 /src
parent58d282e894adb7cd69b2ff2838c88462a8f4ab7e (diff)
downloadqbs-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.cpp2
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);
}