summaryrefslogtreecommitdiff
path: root/src/svg/qsvgstructure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/qsvgstructure.cpp')
-rw-r--r--src/svg/qsvgstructure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvgstructure.cpp b/src/svg/qsvgstructure.cpp
index 38ac822..5ab1978 100644
--- a/src/svg/qsvgstructure.cpp
+++ b/src/svg/qsvgstructure.cpp
@@ -218,12 +218,12 @@ inline static bool isSupportedSvgFeature(const QString &str)
"http://www.w3.org/Graphics/SVG/feature/1.2/#ExternalResourcesRequiredAttribute"
};
- if (str.length() <= MAX_WORD_LENGTH && str.length() >= MIN_WORD_LENGTH) {
+ if (str.size() <= MAX_WORD_LENGTH && str.size() >= MIN_WORD_LENGTH) {
const char16_t unicode44 = str.at(44).unicode();
const char16_t unicode45 = str.at(45).unicode();
if (unicode44 >= sizeof(asso_values) || unicode45 >= sizeof(asso_values))
return false;
- const int key = str.length()
+ const int key = str.size()
+ asso_values[unicode45]
+ asso_values[unicode44];
if (key <= MAX_HASH_VALUE && key >= 0)