Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
fc353a97
Commit
fc353a97
authored
Jan 18, 2018
by
Kai Uwe Broulik
🍇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Calculator Runner] Fix unused variable warning
This variable is only used when Qalculate is available
parent
8e92d4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
runners/calculator/calculatorrunner.cpp
runners/calculator/calculatorrunner.cpp
+1
-0
No files found.
runners/calculator/calculatorrunner.cpp
View file @
fc353a97
...
...
@@ -295,6 +295,7 @@ QString CalculatorRunner::calculate(const QString& term, bool *isApproximate)
return
result
.
replace
(
'.'
,
QLocale
().
decimalPoint
(),
Qt
::
CaseInsensitive
);
#else
Q_UNUSED
(
isApproximate
);
//qDebug() << "calculating" << term;
QJSEngine
eng
;
QJSValue
result
=
eng
.
evaluate
(
QStringLiteral
(
"var result = %1; result"
).
arg
(
term
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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