Commit 9af3d4a3 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Make two ParamIteratorPrivate's data members const

parent d7551c2e
......@@ -86,9 +86,15 @@ namespace KDevelop {
class ParamIteratorPrivate
{
public:
explicit ParamIteratorPrivate(const QString& parens, const QString& source)
: m_parens(parens)
, m_source(source)
{
}
const QString m_parens;
const QString m_source;
QString m_prefix;
QString m_source;
QString m_parens;
int m_cur;
int m_curEnd;
int m_end;
......@@ -305,13 +311,10 @@ QString removeWhitespace(const QString& str)
ParamIterator::~ParamIterator() = default;
ParamIterator::ParamIterator(const QString& parens, const QString& source, int offset)
: d_ptr(new ParamIteratorPrivate)
: d_ptr(new ParamIteratorPrivate{parens, source})
{
Q_D(ParamIterator);
d->m_source = source;
d->m_parens = parens;
d->m_cur = offset;
d->m_curEnd = offset;
d->m_end = d->m_source.length();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment