[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kpilot/lib
From:       Adriaan de Groot <groot () kde ! org>
Date:       2004-12-07 22:56:18
Message-ID: 20041207225618.DDC511B9D8 () office ! kde ! org
[Download RAW message or body]

CVS commit by adridg: 

Work for pre-0.12 too


  M +11 -6     pilotRecord.cc   1.18


--- kdepim/kpilot/lib/pilotRecord.cc  #1.17:1.18
@@ -72,6 +72,9 @@ PilotRecord::PilotRecord(void *data, int
         fAttrib(attrib),
         fCat(cat),
-        fID(uid),
+        fID(uid)
+#if PILOT_LINK_NUMBER >= PILOT_LINK_0_12_0
+        ,
         fBuffer(0L)
+#endif
 {
         FUNCTIONSETUP;
@@ -85,5 +88,9 @@ PilotRecord::PilotRecord(void *data, int
 
 PilotRecord::PilotRecord(PilotRecord * orig) :
+        fID(orig->id())
+#if PILOT_LINK_NUMBER >= PILOT_LINK_0_12_0
+        ,
         fBuffer(0L)
+#endif
 {
         FUNCTIONSETUP;
@@ -102,14 +109,12 @@ PilotRecord & PilotRecord::operator = (P
 {
         FUNCTIONSETUP;
+#if PILOT_LINK_NUMBER >= PILOT_LINK_0_12_0
         if (fBuffer)
         {
-#if PILOT_LINK_NUMBER < PILOT_LINK_0_12_0
-                kdWarning() << kde_funcinfo << ": Uninitialized pi_buffer" << endl;
-#else
                 pi_buffer_free(fBuffer);
                 fBuffer=0L;
                 fData=0L;
-#endif
         }
+#endif
 
         if (fData)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic