]> WPIA git - cassiopeia.git/commitdiff
fix: Use auto& to avoid deep copy of std::shared_ptr
authorBenny Baumann <BenBE@geshi.org>
Sat, 6 Jun 2015 00:08:27 +0000 (02:08 +0200)
committerBenny Baumann <BenBE@geshi.org>
Sat, 6 Jun 2015 00:24:56 +0000 (02:24 +0200)
src/apps/client.cpp

index 5cbacdc264481a1e13515825eae6bc88fe801042..193626fe906edaa26607fdf260d374061e7b6721 100644 (file)
@@ -30,7 +30,7 @@ extern std::unordered_map<std::string, std::shared_ptr<CAConfig>> CAs;
 void checkCRLs( std::shared_ptr<Signer> sign ) {
     std::cout << "Signing CRLs" << std::endl;
 
-    for( auto x : CAs ) {
+    for( auto& x : CAs ) {
         std::cout << "Checking: " << x.first << std::endl;
 
         if( !x.second->crlNeedsResign() ) {