Finally fix compilation for Qt < 5.5.
This commit is contained in:
parent
c64b3df277
commit
0402a5dddb
1 changed files with 5 additions and 5 deletions
|
|
@ -141,7 +141,7 @@ TtRssResponse TtRssNetworkFactory::logout() {
|
||||||
|
|
||||||
TtRssGetFeedsCategoriesResponse TtRssNetworkFactory::getFeedsCategories() {
|
TtRssGetFeedsCategoriesResponse TtRssNetworkFactory::getFeedsCategories() {
|
||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json["op"] = "getFeedTree";
|
json["op"] = QSL("getFeedTree");
|
||||||
json["sid"] = m_sessionId;
|
json["sid"] = m_sessionId;
|
||||||
json["include_empty"] = true;
|
json["include_empty"] = true;
|
||||||
|
|
||||||
|
|
@ -176,7 +176,7 @@ TtRssGetHeadlinesResponse TtRssNetworkFactory::getHeadlines(int feed_id, int lim
|
||||||
bool show_content, bool include_attachments,
|
bool show_content, bool include_attachments,
|
||||||
bool sanitize) {
|
bool sanitize) {
|
||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json["op"] = "getHeadlines";
|
json["op"] = QSL("getHeadlines");
|
||||||
json["sid"] = m_sessionId;
|
json["sid"] = m_sessionId;
|
||||||
json["feed_id"] = feed_id;
|
json["feed_id"] = feed_id;
|
||||||
json["force_update"] = m_forceServerSideUpdate;
|
json["force_update"] = m_forceServerSideUpdate;
|
||||||
|
|
@ -217,7 +217,7 @@ TtRssUpdateArticleResponse TtRssNetworkFactory::updateArticles(const QStringList
|
||||||
UpdateArticle::OperatingField field,
|
UpdateArticle::OperatingField field,
|
||||||
UpdateArticle::Mode mode) {
|
UpdateArticle::Mode mode) {
|
||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json["op"] = "updateArticle";
|
json["op"] = QSL("updateArticle");
|
||||||
json["sid"] = m_sessionId;
|
json["sid"] = m_sessionId;
|
||||||
json["article_ids"] = ids.join(QSL(","));
|
json["article_ids"] = ids.join(QSL(","));
|
||||||
json["mode"] = (int) mode;
|
json["mode"] = (int) mode;
|
||||||
|
|
@ -255,7 +255,7 @@ TtRssSubscribeToFeedResponse TtRssNetworkFactory::subscribeToFeed(const QString
|
||||||
bool protectd, const QString &username,
|
bool protectd, const QString &username,
|
||||||
const QString &password) {
|
const QString &password) {
|
||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json["op"] = "subscribeToFeed";
|
json["op"] = QSL("subscribeToFeed");
|
||||||
json["sid"] = m_sessionId;
|
json["sid"] = m_sessionId;
|
||||||
json["feed_url"] = url;
|
json["feed_url"] = url;
|
||||||
json["category_id"] = category_id;
|
json["category_id"] = category_id;
|
||||||
|
|
@ -295,7 +295,7 @@ TtRssSubscribeToFeedResponse TtRssNetworkFactory::subscribeToFeed(const QString
|
||||||
|
|
||||||
TtRssUnsubscribeFeedResponse TtRssNetworkFactory::unsubscribeFeed(int feed_id) {
|
TtRssUnsubscribeFeedResponse TtRssNetworkFactory::unsubscribeFeed(int feed_id) {
|
||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json["op"] = "unsubscribeFeed";
|
json["op"] = QSL("unsubscribeFeed");
|
||||||
json["sid"] = m_sessionId;
|
json["sid"] = m_sessionId;
|
||||||
json["feed_id"] = feed_id;
|
json["feed_id"] = feed_id;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue