- get rid of internal forced instanciation, not needed.
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 11 Jun 2007 09:28:44 +0000 (09:28 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 11 Jun 2007 09:28:44 +0000 (09:28 +0000)
- use std::inserter, that works with std::set instead of back_inserter

zypp/cache/ResolvableQuery.cc

index 0483f40..ba06950 100644 (file)
@@ -1,3 +1,5 @@
+#include <iterator>
+#include <algorithm>
 
 #include "zypp/cache/CacheTypes.h"
 #include "zypp/cache/ResolvableQuery.h"
@@ -122,7 +124,7 @@ struct ResolvableQuery::Impl
     _Container words;
     
     //
-    //str::split( all, std::inserter(words) );
+    str::split( all, std::inserter(words, words.begin()) );
     return words;
   }
   
@@ -209,16 +211,6 @@ private:
   }
 };
 
-template 
-list<string> ResolvableQuery::Impl::queryStringContainerAttribute( const data::RecordId &record_id,
-                                                                   const std::string &klass,
-                                                                   const std::string &name );
-
-template 
-set<string> ResolvableQuery::Impl::queryStringContainerAttribute( const data::RecordId &record_id,
-                                                                  const std::string &klass,
-                                                                  const std::string &name );
-
 //////////////////////////////////////////////////////////////////////////////
 // FORWARD TO IMPLEMENTATION
 //////////////////////////////////////////////////////////////////////////////