[med-svn] [aghermann] 30/85: don't load profiles twice

andrei zavada hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:26 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit 0bf1657eeea6e8d403b1162959088769f8c187e2
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Sep 15 02:18:46 2013 +0300

    don't load profiles twice
---
 upstream/src/aghermann/expdesign/expdesign.hh |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/upstream/src/aghermann/expdesign/expdesign.hh b/upstream/src/aghermann/expdesign/expdesign.hh
index 156a173..e1c0e15 100644
--- a/upstream/src/aghermann/expdesign/expdesign.hh
+++ b/upstream/src/aghermann/expdesign/expdesign.hh
@@ -346,7 +346,7 @@ load_profiles_from_location( agh::TExpDirLevel level, agh::CExpDesign& ED, const
                                         ret.emplace_back(
                                                 eps[i]->d_name, level, ED, level_id,
                                                 args...);
-                                        ret.back().load();
+                                        // ret.back().load();  // loaded from ctor
                                 } catch (invalid_argument& ex) {
                                         ;
                                 }
@@ -355,7 +355,6 @@ load_profiles_from_location( agh::TExpDirLevel level, agh::CExpDesign& ED, const
                 free( (void*)eps);
         }
 
-        //printf("found %zu profiles in %s\n", ret.size(), agh::exp_dir_level_s(origin));
         return move(ret);
 }
 

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list