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
Marco Bubke
flatpak-qt-creator
Commits
c8cf974f
Commit
c8cf974f
authored
Oct 30, 2010
by
Tobias Hunger
Browse files
Make operators == const
Krazy complained about those.
parent
f9035b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/environment.h
View file @
c8cf974f
...
...
@@ -50,7 +50,7 @@ public:
QString
value
;
bool
unset
;
bool
operator
==
(
const
EnvironmentItem
&
other
)
bool
operator
==
(
const
EnvironmentItem
&
other
)
const
{
return
(
unset
==
other
.
unset
)
&&
(
name
==
other
.
name
)
&&
(
value
==
other
.
value
);
}
...
...
src/plugins/coreplugin/icontext.h
View file @
c8cf974f
...
...
@@ -66,7 +66,7 @@ public:
void
prepend
(
int
c
)
{
d
.
prepend
(
c
);
}
void
add
(
const
Context
&
c
)
{
d
+=
c
.
d
;
}
void
add
(
int
c
)
{
d
.
append
(
c
);
}
bool
operator
==
(
const
Context
&
c
)
{
return
d
==
c
.
d
;
}
bool
operator
==
(
const
Context
&
c
)
const
{
return
d
==
c
.
d
;
}
private:
QList
<
int
>
d
;
...
...
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