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
Graphics
Kipi Plugins
Commits
94fa78b1
Commit
94fa78b1
authored
Nov 27, 2019
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable QT_NO_URL_CAST_FROM_STRING and fix compilation
parent
3e7b4ed1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
CMakeLists.txt
+2
-0
common/libkipiplugins/o2/src/o2.cpp
common/libkipiplugins/o2/src/o2.cpp
+3
-3
No files found.
CMakeLists.txt
View file @
94fa78b1
...
...
@@ -201,6 +201,8 @@ if(WIN32 AND MSVC)
add_definitions
(
-D_AFX_SECURE_NO_WARNINGS
)
endif
()
add_definitions
(
-DQT_NO_URL_CAST_FROM_STRING
)
# Remove pedantic GCC flag which generate a lots of warnings on the console with qCDebug()
while
(
CMAKE_CXX_FLAGS MATCHES
"-pedantic"
)
string
(
REPLACE
"-pedantic"
""
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
"
)
...
...
common/libkipiplugins/o2/src/o2.cpp
View file @
94fa78b1
...
...
@@ -118,7 +118,7 @@ QString O2::requestUrl() {
}
void
O2
::
setRequestUrl
(
const
QString
&
value
)
{
requestUrl_
=
value
;
requestUrl_
=
QUrl
(
value
)
;
Q_EMIT
requestUrlChanged
();
}
...
...
@@ -138,7 +138,7 @@ QString O2::tokenUrl() {
}
void
O2
::
setTokenUrl
(
const
QString
&
value
)
{
tokenUrl_
=
value
;
tokenUrl_
=
QUrl
(
value
)
;
Q_EMIT
tokenUrlChanged
();
}
...
...
@@ -147,7 +147,7 @@ QString O2::refreshTokenUrl() {
}
void
O2
::
setRefreshTokenUrl
(
const
QString
&
value
)
{
refreshTokenUrl_
=
value
;
refreshTokenUrl_
=
QUrl
(
value
)
;
Q_EMIT
refreshTokenUrlChanged
();
}
...
...
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