]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/version.cc
fix -Wmissing-field-initializers warnings
[apt.git] / apt-pkg / version.cc
index db340c11f6a389934d00b77d58799813601ab0c5..cb2c34c0fde1699dd02a801f1af56d7f7cec9432 100644 (file)
@@ -8,9 +8,7 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/version.h"
-#endif 
+#include<config.h>
 
 #include <apt-pkg/version.h>
 #include <apt-pkg/pkgcache.h>
@@ -25,10 +23,10 @@ unsigned long pkgVersioningSystem::GlobalListLen = 0;
 // pkgVS::pkgVersioningSystem - Constructor                            /*{{{*/
 // ---------------------------------------------------------------------
 /* Link to the global list of versioning systems supported */
-pkgVersioningSystem::pkgVersioningSystem()
+pkgVersioningSystem::pkgVersioningSystem() : Label(NULL)
 {
    VSList[GlobalListLen] = this;
-   GlobalListLen++;
+   ++GlobalListLen;
 }
                                                                        /*}}}*/
 // pkgVS::GetVS - Find a VS by name                                    /*{{{*/