mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix build of the new TWidgetHelper<> for GCC, finally.
Also fixed a char-related warning in codegen project.
This commit is contained in:
parent
232ed0a7c0
commit
25f90b5159
@ -127,7 +127,7 @@ QString stringToEncodedString(const QString &str) {
|
||||
} else if (ch == '"' || ch == '\\') {
|
||||
writingHexEscapedCharacters = false;
|
||||
result.append('\\').append(ch);
|
||||
} else if (ch < 32 || ch > 127) {
|
||||
} else if (ch < 32 || static_cast<uchar>(ch) > 127) {
|
||||
writingHexEscapedCharacters = true;
|
||||
result.append("\\x").append(hexFirstChar(ch)).append(hexSecondChar(ch));
|
||||
} else {
|
||||
|
@ -220,6 +220,9 @@ private:
|
||||
return qobject_cast<const TWidget*>(Base::parentWidget());
|
||||
}
|
||||
|
||||
template <typename OtherBase>
|
||||
friend class TWidgetHelper;
|
||||
|
||||
};
|
||||
|
||||
class TWidget : public TWidgetHelper<QWidget> {
|
||||
@ -303,9 +306,6 @@ protected:
|
||||
return height();
|
||||
}
|
||||
|
||||
template <typename Base>
|
||||
friend class TWidgetHelper;
|
||||
|
||||
};
|
||||
|
||||
template <typename Widget>
|
||||
|
Loading…
Reference in New Issue
Block a user