Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop
Commits
9af3d4a3
Commit
9af3d4a3
authored
Oct 11, 2022
by
Igor Kushnir
Browse files
Make two ParamIteratorPrivate's data members const
parent
d7551c2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kdevplatform/language/duchain/stringhelpers.cpp
View file @
9af3d4a3
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment