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
Education
Cantor
Commits
1f2dadf6
Commit
1f2dadf6
authored
Feb 21, 2020
by
Nikita Sirgienko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor compiler warnings
parent
8309aea8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
src/backends/R/rhighlighter.cpp
src/backends/R/rhighlighter.cpp
+1
-1
src/backends/maxima/maximasession.cpp
src/backends/maxima/maximasession.cpp
+0
-1
src/lib/renderer.cpp
src/lib/renderer.cpp
+2
-0
src/mathrendertask.cpp
src/mathrendertask.cpp
+1
-1
No files found.
src/backends/R/rhighlighter.cpp
View file @
1f2dadf6
...
...
@@ -27,7 +27,7 @@
#include <QDebug>
const
QStringList
RHighlighter
::
operators_list
=
QStringList
()
<<
QLatin1String
(
"(
\\
+|
\\
-|\*{1,2}|/|<=?|>=?|={1,2}|
\\
!=?|\|{1,2}|&{1,2}|:{1,3}|\^|@|
\\
$|~)"
)
<<
QLatin1String
(
"(
\\
+|
\\
-|
\
\
*{1,2}|/|<=?|>=?|={1,2}|
\\
!=?|
\
\
|{1,2}|&{1,2}|:{1,3}|
\
\
^|@|
\\
$|~)"
)
<<
QLatin1String
(
"%[^%]*%"
);
// Taken in r.xml syntax file from KSyntaxHighlighter
const
QStringList
RHighlighter
::
specials_list
=
QStringList
()
...
...
src/backends/maxima/maximasession.cpp
View file @
1f2dadf6
...
...
@@ -192,7 +192,6 @@ void MaximaSession::reportProcessError(QProcess::ProcessError e)
void
MaximaSession
::
currentExpressionChangedStatus
(
Cantor
::
Expression
::
Status
status
)
{
Cantor
::
Expression
*
expression
=
expressionQueue
().
first
();
const
QString
&
cmd
=
expression
->
command
();
qDebug
()
<<
"expression status changed: command = "
<<
expression
->
command
()
<<
", status = "
<<
status
;
switch
(
status
)
...
...
src/lib/renderer.cpp
View file @
1f2dadf6
...
...
@@ -165,6 +165,8 @@ QImage Renderer::epsRenderToImage(const QUrl& url, double scale, bool useHighRes
*
errorReason
=
QString
::
fromLatin1
(
"Render Eps on Cantor without eps support (libspectre)!"
);
Q_UNUSED
(
url
);
Q_UNUSED
(
scale
);
Q_UNUSED
(
useHighRes
);
Q_UNUSED
(
size
);
return
QImage
();
#endif
...
...
src/mathrendertask.cpp
View file @
1f2dadf6
...
...
@@ -177,7 +177,7 @@ void MathRenderTask::run()
// For example, this pdf will copied into .cws file on save
const
QString
&
pdfFileName
=
pathWithoutExtension
+
QLatin1String
(
".pdf"
);
bool
success
;
QString
errorMessage
;
QSizeF
size
;
bool
success
;
QString
errorMessage
;
const
auto
&
data
=
renderPdfToFormat
(
pdfFileName
,
m_code
,
uuid
,
m_type
,
m_scale
,
m_highResolution
,
&
success
,
&
errorMessage
);
result
->
successful
=
success
;
result
->
errorMessage
=
errorMessage
;
...
...
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