2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Rename weak(QObject*) to make_weak(QObject*).

This commit is contained in:
John Preston
2017-11-30 22:04:13 +04:00
parent 2bbf17b672
commit 595af2c6d9
12 changed files with 49 additions and 39 deletions

View File

@@ -435,12 +435,12 @@ protected:
};
template <typename Widget>
QPointer<Widget> weak(Widget *object) {
QPointer<Widget> make_weak(Widget *object) {
return QPointer<Widget>(object);
}
template <typename Widget>
QPointer<const Widget> weak(const Widget *object) {
QPointer<const Widget> make_weak(const Widget *object) {
return QPointer<const Widget>(object);
}