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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user