OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca277fc
)
const-ify QStringSplitter::m_splitChar member
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 22 Nov 2021 05:10:40 +0000
(07:10 +0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Mon, 22 Nov 2021 05:10:40 +0000
(07:10 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qresource.cpp
patch
|
blob
|
history
diff --git
a/src/core/io/qresource.cpp
b/src/core/io/qresource.cpp
index
2550ceb
..
835fcea
100644
(file)
--- a/
src/core/io/qresource.cpp
+++ b/
src/core/io/qresource.cpp
@@
-46,9
+46,8
@@
class QStringSplitter
{
public:
QStringSplitter(const QString &s)
- : m_string(s), m_pos(0)
+ : m_string(s), m_pos(0)
, m_splitChar(QLatin1Char('/'))
{
- m_splitChar = QLatin1Char('/');
}
inline bool hasNext() {
@@
-65,8
+64,8
@@
public:
}
QString m_string;
- QChar m_splitChar;
int m_pos;
+ const QChar m_splitChar;
};