mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Languages updated. Build in Xcode fixed.
This commit is contained in:
@@ -437,7 +437,7 @@ using RPCDoneHandlerImplementation = RPCHandlerImplementation<RPCAbstractDoneHan
|
||||
template <typename R>
|
||||
class RPCDoneHandlerImplementationBare : public RPCDoneHandlerImplementation<R(const mtpPrime*, const mtpPrime*)> { // done(from, end)
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R(const mtpPrime*, const mtpPrime*)>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler(from, end) : void(0);
|
||||
}
|
||||
@@ -447,7 +447,7 @@ public:
|
||||
template <typename R>
|
||||
class RPCDoneHandlerImplementationBareReq : public RPCDoneHandlerImplementation<R(const mtpPrime*, const mtpPrime*, mtpRequestId)> { // done(from, end, req_id)
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R(const mtpPrime*, const mtpPrime*, mtpRequestId)>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler(from, end, requestId) : void(0);
|
||||
}
|
||||
@@ -457,7 +457,7 @@ public:
|
||||
template <typename R, typename T>
|
||||
class RPCDoneHandlerImplementationPlain : public RPCDoneHandlerImplementation<R(const T&)> { // done(result)
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R(const T&)>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler(T(from, end)) : void(0);
|
||||
}
|
||||
@@ -467,7 +467,7 @@ public:
|
||||
template <typename R, typename T>
|
||||
class RPCDoneHandlerImplementationReq : public RPCDoneHandlerImplementation<R(const T&, mtpRequestId)> { // done(result, req_id)
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R(const T&, mtpRequestId)>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler(T(from, end), requestId) : void(0);
|
||||
}
|
||||
@@ -477,7 +477,7 @@ public:
|
||||
template <typename R>
|
||||
class RPCDoneHandlerImplementationNo : public RPCDoneHandlerImplementation<R()> { // done()
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R()>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler() : void(0);
|
||||
}
|
||||
@@ -487,7 +487,7 @@ public:
|
||||
template <typename R>
|
||||
class RPCDoneHandlerImplementationNoReq : public RPCDoneHandlerImplementation<R(mtpRequestId)> { // done(req_id)
|
||||
public:
|
||||
using Parent::Parent;
|
||||
using RPCDoneHandlerImplementation<R(mtpRequestId)>::Parent::Parent;
|
||||
void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const override {
|
||||
return this->_handler ? this->_handler(requestId) : void(0);
|
||||
}
|
||||
|
||||
@@ -8152,13 +8152,13 @@ bool HistoryService::prepareGameScoreText(const QString &from, QString *outText,
|
||||
}
|
||||
return lang(lng_deleted_message);
|
||||
};
|
||||
text = lng_action_game_score(lt_from, from, lt_score, QString::number(gamescore->score), lt_game, getGameTitle());
|
||||
text = lng_action_game_score(lt_from, from, lt_count, gamescore->score, lt_game, getGameTitle());
|
||||
result = true;
|
||||
} else if (gamescore && gamescore->msgId) {
|
||||
text = lng_action_game_score(lt_from, from, lt_score, QString::number(gamescore->score), lt_game, lang(lng_contacts_loading));
|
||||
text = lng_action_game_score(lt_from, from, lt_count, gamescore->score, lt_game, lang(lng_contacts_loading));
|
||||
result = true;
|
||||
} else {
|
||||
text = lng_action_game_score(lt_from, from, lt_score, QString::number(gamescore->score), lt_game, lang(lng_deleted_message));
|
||||
text = lng_action_game_score(lt_from, from, lt_count, gamescore->score, lt_game, lang(lng_deleted_message));
|
||||
}
|
||||
*outText = text;
|
||||
if (second) {
|
||||
|
||||
@@ -444,7 +444,7 @@ void MediaPreviewWidget::paintEvent(QPaintEvent *e) {
|
||||
Painter p(this);
|
||||
QRect r(e->rect());
|
||||
|
||||
auto &image = currentImage();
|
||||
auto image = currentImage();
|
||||
int w = image.width() / cIntRetinaFactor(), h = image.height() / cIntRetinaFactor();
|
||||
if (_a_shown.animating()) {
|
||||
float64 shown = a_shown.current();
|
||||
|
||||
@@ -1441,12 +1441,12 @@ void StickerPanInner::refreshStickers() {
|
||||
}
|
||||
auto i = _animations.find(sel + 1);
|
||||
if (i != _animations.cend()) {
|
||||
i.value() = (i.value() >= st::emojiPanDuration) ? (i.value() - st::emojiPanDuration) : 0;
|
||||
i.value() = (i.value() >= static_cast<uint32>(st::emojiPanDuration)) ? (i.value() - st::emojiPanDuration) : 0;
|
||||
}
|
||||
if (xsel >= 0) {
|
||||
auto j = _animations.find(xsel + 1);
|
||||
if (j != _animations.cend()) {
|
||||
j.value() = (j.value() >= st::emojiPanDuration) ? (j.value() - st::emojiPanDuration) : 0;
|
||||
j.value() = (j.value() >= static_cast<uint32>(st::emojiPanDuration)) ? (j.value() - st::emojiPanDuration) : 0;
|
||||
}
|
||||
}
|
||||
step_selected(getms(), true);
|
||||
|
||||
Reference in New Issue
Block a user