Gcc 4.7 warns rightly about the questionalble practise of having different types in
the ?: operator. This patch fixes that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40585
a592a061-630c-0410-9148-
cb99ea01b6c8
Buffer * b = first;
// We cannot use a for loop as the buffer list cycles.
do {
- bool const shown = guiApp->currentView()
- ? guiApp->currentView()->workArea(*b) : false;
- if (!shown) {
+ if (guiApp->currentView()
+ && guiApp->currentView()->workArea(*b)) {
QString label = toqstr(b->fileName().displayName(20));
if (!b->isClean())
label += "*";