[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/messagelist
From: Laurent Montel <montel () kde ! org>
Date: 2010-06-22 10:13:12
Message-ID: 20100622101312.DFE77AC8DA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1141218 by mlaurent:
Minor
M +18 -19 pane.cpp
--- trunk/KDE/kdepim/messagelist/pane.cpp #1141217:1141218
@@ -550,13 +550,12 @@
QList<Akonadi::Item> Pane::itemListFromPersistentSet( \
MessageList::Core::MessageItemSetReference ref ) {
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 ) {
+ if ( w ) {
+ return w->itemListFromPersistentSet(ref);
+ }
return QList<Akonadi::Item>();
}
- return w->itemListFromPersistentSet(ref);
-}
-
void Pane::deletePersistentSet( MessageList::Core::MessageItemSetReference ref )
{
Widget *w = static_cast<Widget*>( currentWidget() );
@@ -585,29 +584,29 @@
QString Pane::currentFilterSearchString() const
{
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 ) {
- return QString();
- }
+ if ( w ) {
return w->currentFilterSearchString();
}
+ return QString();
+}
bool Pane::isThreaded() const
{
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 ) {
- return false;
- }
+ if ( w ) {
return w->isThreaded();
}
+ return false;
+}
bool Pane::selectionEmpty() const
{
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 ) {
- return false;
- }
+ if ( w ) {
return w->selectionEmpty();
}
+ return false;
+}
bool Pane::getSelectionStats( Akonadi::Item::List &selectedItems,
Akonadi::Item::List &selectedVisibleItems,
@@ -628,17 +627,17 @@
MessageList::Core::MessageItemSetReference Pane::selectionAsPersistentSet( bool \
includeCollapsedChildren ) const {
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 )
- return -1;
+ if ( w )
return w->selectionAsPersistentSet( includeCollapsedChildren );
+ return -1;
}
MessageList::Core::MessageItemSetReference Pane::currentThreadAsPersistentSet() \
const {
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 )
- return -1;
+ if ( w )
return w->currentThreadAsPersistentSet();
+ return -1;
}
void Pane::focusView()
@@ -661,9 +660,9 @@
QItemSelectionModel* Pane::currentItemSelectionModel()
{
Widget *w = static_cast<Widget*>( currentWidget() );
- if ( w == 0 )
- return 0;
+ if ( w )
return w->view()->selectionModel();
+ return 0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic