summaryrefslogtreecommitdiffstats
path: root/src/utf8.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-28 19:57:33 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-28 19:57:33 (GMT)
commit42bac34be2b7b4beb5ee468926ed0bf0e7528fd2 (patch)
tree342ff1055c25dfe934876c5bef19e2c4304fc640 /src/utf8.cpp
parentc48639744a6fa118b9851b307107994ba93ce4c8 (diff)
downloadDoxygen-42bac34be2b7b4beb5ee468926ed0bf0e7528fd2.zip
Doxygen-42bac34be2b7b4beb5ee468926ed0bf0e7528fd2.tar.gz
Doxygen-42bac34be2b7b4beb5ee468926ed0bf0e7528fd2.tar.bz2
Fixed compilation problem when enableing sqlite3
Diffstat (limited to 'src/utf8.cpp')
-rw-r--r--src/utf8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf8.cpp b/src/utf8.cpp
index 651c021..9c9034d 100644
--- a/src/utf8.cpp
+++ b/src/utf8.cpp
@@ -139,7 +139,7 @@ static inline std::string caseConvert(const std::string &input,
const char *(*conversionFunc)(uint32_t code))
{
uint32_t code;
- std::ostringstream result(std::ios_base::ate);
+ TextStream result;
int len;
size_t bytesLeft = input.length();
const char *p = input.c_str();
@@ -148,7 +148,7 @@ static inline std::string caseConvert(const std::string &input,
const char *conv = conversionFunc(code);
if (conv==nullptr) // no difference between lower and upper case
{
- result << std::string(p,len);
+ result.write(p,len);
}
else // replace the input character with the conversion result
{