]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
Fix warnings reported by clang
[features.git] / src / frontends / qt4 / GuiApplication.cpp
index 9229f155ef368ac051f0aa51136aae5259aab5d6..0fbba746e4e7949eae9c35c8d2fc1647a1dde020 100644 (file)
@@ -1809,7 +1809,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                Buffer * const last = theBufferList().last();
                foreach (GuiView * view, allViews) {
                        // all of the buffers might be locally hidden. That is, there is no active buffer.
-                       if (!view || !view->currentBufferView() || !&view->currentBufferView()->buffer())
+                       if (!view || !view->currentBufferView())
                                activeBuffers[view] = 0;
                        else
                                activeBuffers[view] = &view->currentBufferView()->buffer();