summaryrefslogtreecommitdiff
path: root/addon/doxmlparser
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 11:13:31 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 11:13:31 +0900
commit6034e81193d784e8af78fa8ab56438ab1e0d7839 (patch)
tree27f894681430b733eb8711442a4c9312b7cc3535 /addon/doxmlparser
parent3b6ea7abb3d529f7805ed54071d597f01b578740 (diff)
downloaddoxygen-6034e81193d784e8af78fa8ab56438ab1e0d7839.tar.gz
doxygen-6034e81193d784e8af78fa8ab56438ab1e0d7839.tar.bz2
doxygen-6034e81193d784e8af78fa8ab56438ab1e0d7839.zip
Imported Upstream version 1.8.18upstream/1.8.18
Diffstat (limited to 'addon/doxmlparser')
-rw-r--r--addon/doxmlparser/Doxyfile1
-rw-r--r--addon/doxmlparser/Doxyfile.impl1
-rw-r--r--addon/doxmlparser/src/stringimpl.h24
3 files changed, 16 insertions, 10 deletions
diff --git a/addon/doxmlparser/Doxyfile b/addon/doxmlparser/Doxyfile
index 2cef6cf..18359a0 100644
--- a/addon/doxmlparser/Doxyfile
+++ b/addon/doxmlparser/Doxyfile
@@ -40,7 +40,6 @@ INHERIT_DOCS = YES
SEPARATE_MEMBER_PAGES = NO
TAB_SIZE = 8
ALIASES =
-TCL_SUBST =
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
OPTIMIZE_FOR_FORTRAN = NO
diff --git a/addon/doxmlparser/Doxyfile.impl b/addon/doxmlparser/Doxyfile.impl
index 5bddcc4..9bfc85e 100644
--- a/addon/doxmlparser/Doxyfile.impl
+++ b/addon/doxmlparser/Doxyfile.impl
@@ -40,7 +40,6 @@ INHERIT_DOCS = YES
SEPARATE_MEMBER_PAGES = NO
TAB_SIZE = 8
ALIASES =
-TCL_SUBST =
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
OPTIMIZE_FOR_FORTRAN = NO
diff --git a/addon/doxmlparser/src/stringimpl.h b/addon/doxmlparser/src/stringimpl.h
index 013858f..8931b42 100644
--- a/addon/doxmlparser/src/stringimpl.h
+++ b/addon/doxmlparser/src/stringimpl.h
@@ -4,26 +4,34 @@
#include <qstring.h>
#include "doxmlintf.h"
-class StringImpl : public QString, public IString
+class StringImpl : public IString
{
public:
StringImpl() {}
- StringImpl(const QString &str) : QString(str) {}
+ StringImpl(const QString &str) : m_str(str) {}
StringImpl &operator=(const QString &str)
- { QString::operator=(str); return *this; }
+ { m_str=str; return *this; }
virtual ~StringImpl() {}
+ const char *data() const
+ { return m_str.data(); }
// IString
const char *latin1() const
- { return QString::latin1(); }
+ { return m_str.latin1(); }
const char *utf8() const
- { return QString::utf8(); }
+ { m_cstr = m_str.utf8(); return m_cstr.data(); }
unsigned short unicodeCharAt(int index) const
- { return QString::unicode()[index].unicode(); }
+ { return m_str.unicode()[index].unicode(); }
bool isEmpty() const
- { return QString::isEmpty(); }
+ { return m_str.isEmpty(); }
int length() const
- { return QString::length(); }
+ { return m_str.length(); }
+
+ operator QString() const { return m_str; }
+
+ private:
+ QString m_str;
+ mutable QCString m_cstr; // used as a cache for m_str.utf8() to avoid returning a temporary
};
#endif