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
0ce788a4
Commit
0ce788a4
authored
Apr 29, 2009
by
hjk
Browse files
debugger: remove some duplicated code
parent
14321e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/scriptengine.cpp
View file @
0ce788a4
...
...
@@ -38,6 +38,7 @@
#include
"registerhandler.h"
#include
"stackhandler.h"
#include
"watchhandler.h"
#include
"watchutils.h"
#include
"moduleshandler.h"
#include
<utils/qtcassert.h>
...
...
@@ -422,28 +423,6 @@ static WatchData m_toolTip;
static
QPoint
m_toolTipPos
;
static
QHash
<
QString
,
WatchData
>
m_toolTipCache
;
static
bool
hasLetterOrNumber
(
const
QString
&
exp
)
{
for
(
int
i
=
exp
.
size
();
--
i
>=
0
;
)
if
(
exp
[
i
].
isLetterOrNumber
())
return
true
;
return
false
;
}
static
bool
hasSideEffects
(
const
QString
&
exp
)
{
// FIXME: complete?
return
exp
.
contains
(
"-="
)
||
exp
.
contains
(
"+="
)
||
exp
.
contains
(
"/="
)
||
exp
.
contains
(
"*="
)
||
exp
.
contains
(
"&="
)
||
exp
.
contains
(
"|="
)
||
exp
.
contains
(
"^="
)
||
exp
.
contains
(
"--"
)
||
exp
.
contains
(
"++"
);
}
void
ScriptEngine
::
setToolTipExpression
(
const
QPoint
&
pos
,
const
QString
&
exp0
)
{
Q_UNUSED
(
pos
);
...
...
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