mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
const-ify QStringSplitter::m_splitChar member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca277fcd8c
commit
9a6e526551
1 changed files with 2 additions and 3 deletions
|
@ -46,9 +46,8 @@ class QStringSplitter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QStringSplitter(const QString &s)
|
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() {
|
inline bool hasNext() {
|
||||||
|
@ -65,8 +64,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
QString m_string;
|
QString m_string;
|
||||||
QChar m_splitChar;
|
|
||||||
int m_pos;
|
int m_pos;
|
||||||
|
const QChar m_splitChar;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue