summaryrefslogtreecommitdiffabout
path: root/libkcal/incidencebase.cpp
authorzautrix <zautrix>2004-08-01 22:49:56 (UTC)
committer zautrix <zautrix>2004-08-01 22:49:56 (UTC)
commit3b4aa1cd78395c0f94b99decd901842944765746 (patch) (side-by-side diff)
tree54921c72da527d45bf4b94d9d499f860014dd685 /libkcal/incidencebase.cpp
parented3af1a632f953179ef3cad76ab5d99809f47d60 (diff)
downloadkdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.zip
kdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.tar.gz
kdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.tar.bz2
Updated migration howto
Diffstat (limited to 'libkcal/incidencebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/incidencebase.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp
index d7c4595..f1db8b7 100644
--- a/libkcal/incidencebase.cpp
+++ b/libkcal/incidencebase.cpp
@@ -386,6 +386,7 @@ void IncidenceBase::setID( const QString & prof , int id )
} else {
mExternalId += prof+";"+QString::number( id) +";0:";
}
+ qDebug("setID*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() );
}
int IncidenceBase::getID( const QString & prof)
{
@@ -398,10 +399,11 @@ int IncidenceBase::getID( const QString & prof)
bool ok;
ret = mExternalId.mid ( num + len,end-len-num).toInt( &ok );
if (!ok)
- return -1;
+ ret = -1;
}
}
- return ret;
+ qDebug("getID*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() );
+ return ret;
}
// example :Sharp_DTM;22;23566:TP;-1;8654:TPP;18;0:
@@ -420,6 +422,7 @@ void IncidenceBase::setCsum( const QString & prof , int id )
} else {
mExternalId += prof+";-1;"+QString::number( id) +":";
}
+ qDebug("setCsum*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() );
}
int IncidenceBase::getCsum( const QString & prof)
{
@@ -433,9 +436,10 @@ int IncidenceBase::getCsum( const QString & prof)
bool ok;
ret = mExternalId.mid ( num ,end-num).toInt( &ok );
if (!ok)
- return -1;
+ ret = -1;
}
}
+ qDebug("getCsum*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() );
return ret;
}