Commit 13ef7c49 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Compile more strictly.

parent c91ac5d6
......@@ -38,8 +38,15 @@ include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_definitions(
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
# -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_URL_CAST_FROM_STRING
-DQT_USE_QSTRINGBUILDER
)
add_subdirectory(pics)
add_subdirectory(sounds)
......
......@@ -155,7 +155,7 @@ void Manager::setWWHighscores(const QUrl &url, const QString &version)
const char *HS_WW_URL = "ww hs url";
ConfigGroup cg;
if ( cg.hasKey(HS_WW_URL) )
internal->serverURL = cg.readEntry(HS_WW_URL);
internal->serverURL = QUrl(cg.readEntry(HS_WW_URL));
else cg.writeEntry(HS_WW_URL, url.url());
internal->version = version;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment