Don't use the QPointer::clear() function that was introduced in Qt5
[quassel.git] / src / uisupport / bufferview.cpp
index 30cf217..b879acd 100644 (file)
@@ -715,7 +715,7 @@ void BufferViewDock::onFilterReturnPressed()
 {
     if (_oldFocusItem) {
         _oldFocusItem->setFocus();
-        _oldFocusItem.clear();
+        _oldFocusItem = 0;
     }
 
     if (!config()->showSearch()) {
@@ -763,7 +763,7 @@ bool BufferViewDock::eventFilter(QObject *object, QEvent *event)
 
        if (_oldFocusItem) {
            _oldFocusItem->setFocus();
-           _oldFocusItem.clear();
+           _oldFocusItem = 0;
        }
 
        return true;