diff options
Diffstat (limited to 'src/frontend/btbookshelfview.cpp')
-rw-r--r-- | src/frontend/btbookshelfview.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/frontend/btbookshelfview.cpp b/src/frontend/btbookshelfview.cpp index cb0dcd9..1a04eff 100644 --- a/src/frontend/btbookshelfview.cpp +++ b/src/frontend/btbookshelfview.cpp @@ -4,7 +4,7 @@ * * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License * version 2.0. * @@ -37,13 +37,10 @@ BtBookshelfView::BtBookshelfView(QWidget *parent) this, SLOT(slotItemHovered(QModelIndex))); } -BtBookshelfView::~BtBookshelfView() { - // Intentionally empty -} - -CSwordModuleInfo *BtBookshelfView::getModule(const QModelIndex &index) const { - return (CSwordModuleInfo *) model() - ->data(index, BtBookshelfModel::ModulePointerRole).value<void*>(); +CSwordModuleInfo * BtBookshelfView::getModule(const QModelIndex & index) const { + void * const module = model()->data(index, + BtBookshelfModel::ModulePointerRole).value<void *>(); + return static_cast<CSwordModuleInfo *>(module); } void BtBookshelfView::keyPressEvent(QKeyEvent *event) { |