summaryrefslogtreecommitdiff
authordrw <drw>2005-02-07 20:38:20 (UTC)
committer drw <drw>2005-02-07 20:38:20 (UTC)
commit9f7017a1a571991763ed53066b64988cefdff07b (patch) (side-by-side diff)
tree54028bb0ab76c4dfd7cec67474d98cb1a08912ce
parente56c7dfec502972fc7efcd9e0357c371d0e9cd15 (diff)
downloadopie-9f7017a1a571991763ed53066b64988cefdff07b.zip
opie-9f7017a1a571991763ed53066b64988cefdff07b.tar.gz
opie-9f7017a1a571991763ed53066b64988cefdff07b.tar.bz2
Eliminate compiler warnings
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/ablabel.cpp2
-rw-r--r--core/pim/addressbook/abtable.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp
index 6b8e4dd..139030d 100644
--- a/core/pim/addressbook/ablabel.cpp
+++ b/core/pim/addressbook/ablabel.cpp
@@ -55,33 +55,33 @@ int AbLabel::currentEntry_UID()
else
return ( contact.uid() );
}
Opie::OPimContact AbLabel::currentEntry()
{
if ( ! m_empty )
return ( *m_itCurContact );
else
return Opie::OPimContact();
}
bool AbLabel::selectContact( int UID )
{
- for ( int r = 0; r < m_viewList.count(); ++r ) {
+ for ( uint r = 0; r < m_viewList.count(); ++r ) {
if ( m_viewList.uidAt( r ) == UID ){
m_itCurContact.setCurrent( r );
break;
}
}
sync();
return true;
}
void AbLabel::sync()
{
QString text = (*m_itCurContact).toRichText();
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp
index 30d749c..0be7d1a 100644
--- a/core/pim/addressbook/abtable.cpp
+++ b/core/pim/addressbook/abtable.cpp
@@ -172,33 +172,32 @@ void AbTable::setContacts( const Opie::OPimContactAccess::List& viewList )
updateVisible();
setPaintingEnabled( TRUE );
}
void AbTable::setOrderedList( const QValueList<int> ordered )
{
intFields = ordered;
}
bool AbTable::selectContact( int UID )
{
odebug << "AbTable::selectContact( " << UID << " )" << oendl;
int rows = numRows();
- Opie::OPimContact* foundContact = 0l;
bool found = false;
setPaintingEnabled( FALSE );
odebug << "Search start" << oendl;
for ( int r = 0; r < rows; ++r ) {
if ( m_viewList.uidAt( r ) == UID ){
ensureCellVisible( r, 0 );
setCurrentCell( r, 0 );
found = true;
break;
}
}
odebug << "Search end" << oendl;
if ( !found ){
ensureCellVisible( 0,0 );
@@ -342,33 +341,33 @@ void AbTable::keyPressEvent( QKeyEvent *e )
emit signalSwitch();
break;
// case Qt::Key_Up:
// odebug << "a" << oendl;
// emit signalKeyUp();
// break;
// case Qt::Key_Down:
// odebug << "b" << oendl;
// emit signalKeyDown();
// break;
default:
QTable::keyPressEvent( e );
}
}
-void AbTable::moveTo( char c )
+void AbTable::moveTo( char /*c*/ )
{
odebug << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl;
#if 0
int rows = numRows();
QString value;
AbTableItem *abi;
int r;
if ( asc ) {
r = 0;
while ( r < rows-1) {
abi = static_cast<AbTableItem*>( item(r, 0) );
QChar first = abi->key()[0];
//### is there a bug in QChar to char comparison???
if ( first.row() || first.cell() >= c )
break;