author | unc0rr |
Tue, 27 Aug 2013 17:22:07 +0400 | |
changeset 9431 | 0f5961910e27 |
parent 9357 | a501f5ec7b34 (diff) |
parent 9429 | 7a97a554ac80 (current diff) |
child 9433 | f0a8ac191839 |
--- a/CMakeLists.txt Tue Aug 27 14:12:16 2013 +0200 +++ b/CMakeLists.txt Tue Aug 27 17:22:07 2013 +0400 @@ -72,13 +72,13 @@ include(${CMAKE_MODULE_PATH}/compilerchecks.cmake) #set default compiler flags -add_flag_append(CMAKE_C_FLAGS "-Wall -pipe") +add_flag_append(CMAKE_C_FLAGS "-Wall -pipe -fPIC") add_flag_append(CMAKE_C_FLAGS_RELEASE "-Os") add_flag_append(CMAKE_C_FLAGS_DEBUG "-Wextra -O0") -add_flag_append(CMAKE_CXX_FLAGS "-Wall -pipe") +add_flag_append(CMAKE_CXX_FLAGS "-Wall -pipe -fPIC") add_flag_append(CMAKE_CXX_FLAGS_RELEASE "-Os") add_flag_append(CMAKE_CXX_FLAGS_DEBUG "-Wextra -O0") -add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000") +add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000 -fPIC") add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-O- -gv") add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Os -Xs")
--- a/QTfrontend/ui/dialog/upload_video.cpp Tue Aug 27 14:12:16 2013 +0200 +++ b/QTfrontend/ui/dialog/upload_video.cpp Tue Aug 27 17:22:07 2013 +0400 @@ -291,7 +291,7 @@ QNetworkReply *reply = (QNetworkReply*)sender(); reply->deleteLater(); - location = QString::fromAscii(reply->rawHeader("Location")); + location = QString::fromLatin1(reply->rawHeader("Location")); if (location.isEmpty()) { QString errorStr = QMessageBox::tr("Error while sending metadata to youtube.com:\n");
--- a/QTfrontend/ui/page/pagevideos.cpp Tue Aug 27 14:12:16 2013 +0200 +++ b/QTfrontend/ui/page/pagevideos.cpp Tue Aug 27 17:22:07 2013 +0400 @@ -845,7 +845,7 @@ for (int i = 0; i < array.size(); i++) array[i] = array[i] ^ 0xC4 ^ i; array = array.toBase64(); - return QString::fromAscii(array.data()); + return QString::fromLatin1(array.data()); } static QString unprotectPass(QString str)