summaryrefslogtreecommitdiff
authorzecke <zecke>2002-12-13 21:57:31 (UTC)
committer zecke <zecke>2002-12-13 21:57:31 (UTC)
commitde449c83cf37a64a9d2df586f6d1acecf3bc0c6e (patch) (side-by-side diff)
treeec75354c1d0c3731b675df639e29e173a2967f7e
parentd00761e2b3b69e1edddcb2115c4c0ae6b5aa4265 (diff)
downloadopie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.zip
opie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.tar.gz
opie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.tar.bz2
No default arguments in implementation please
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/abview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp
index 7226e82..161b163 100644
--- a/core/pim/addressbook/abview.cpp
+++ b/core/pim/addressbook/abview.cpp
@@ -265,65 +265,65 @@ void AbView::showPersonal( bool personal )
m_inPersonal = true;
m_curr_View = CardView;
}else{
if ( !m_inPersonal )
return;
// Remove vCard Backend and restore default
m_contactdb->save();
delete m_contactdb;
m_contactdb = m_storedDB;
m_storedDB = 0l;
m_curr_View = TableView;
m_inPersonal = false;
}
load();
}
QStringList AbView::categories()
{
mCat.load( categoryFileName() );
QStringList categoryList = mCat.labels( "Contacts" );
return categoryList;
}
// BEGIN: Slots
void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
- bool , QString cat = QString::null )
+ bool , QString cat )
{
qWarning( "void AbView::slotDoFind" );
// We reloading the data: Deselect Letterpicker
emit signalClearLetterPicker();
// Use the current Category if nothing else selected
int category = 0;
if ( cat.isEmpty() )
category = m_curr_category;
else{
category = mCat.id("Contacts", cat );
}
qWarning ("Find in Category %d", category);
QRegExp r( str );
r.setCaseSensitive( caseSensitive );
r.setWildcard( !useRegExp );
// Get all matching entries out of the database
m_list = m_contactdb->matchRegexp( r );
qWarning( "found: %d", m_list.count() );
if ( m_list.count() == 0 ){
emit signalNotFound();
return;
}
// Now remove all contacts with wrong category (if any selected)
// This algorithm is a litte bit ineffective, but