]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/version.cc
ExecGPGV: Rework file removal on exit()
[apt.git] / apt-pkg / version.cc
index db340c11f6a389934d00b77d58799813601ab0c5..f32d39a699b5b91e74bbc2e28086af42053d7860 100644 (file)
@@ -8,13 +8,11 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/version.h"
-#endif 
+#include<config.h>
 
 #include <apt-pkg/version.h>
 
 #include <apt-pkg/version.h>
-#include <apt-pkg/pkgcache.h>
 
 
+#include <string.h>
 #include <stdlib.h>
                                                                        /*}}}*/
     
 #include <stdlib.h>
                                                                        /*}}}*/
     
@@ -25,10 +23,10 @@ unsigned long pkgVersioningSystem::GlobalListLen = 0;
 // pkgVS::pkgVersioningSystem - Constructor                            /*{{{*/
 // ---------------------------------------------------------------------
 /* Link to the global list of versioning systems supported */
 // pkgVS::pkgVersioningSystem - Constructor                            /*{{{*/
 // ---------------------------------------------------------------------
 /* Link to the global list of versioning systems supported */
-pkgVersioningSystem::pkgVersioningSystem()
+pkgVersioningSystem::pkgVersioningSystem() : Label(NULL)
 {
    VSList[GlobalListLen] = this;
 {
    VSList[GlobalListLen] = this;
-   GlobalListLen++;
+   ++GlobalListLen;
 }
                                                                        /*}}}*/
 // pkgVS::GetVS - Find a VS by name                                    /*{{{*/
 }
                                                                        /*}}}*/
 // pkgVS::GetVS - Find a VS by name                                    /*{{{*/
@@ -42,3 +40,6 @@ pkgVersioningSystem *pkgVersioningSystem::GetVS(const char *Label)
    return 0;
 }
                                                                        /*}}}*/
    return 0;
 }
                                                                        /*}}}*/
+
+
+pkgVersioningSystem::~pkgVersioningSystem() {}