[dasher: 9/16] Vectors of filenames really only need to be copied once...



commit 5630adbcb83fd56a3a328c43fa65526727ec41bc
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Mon Aug 3 15:59:17 2009 +0100

    Vectors of filenames really only need to be copied once...

 Src/DasherCore/Alphabet/AlphIO.cpp |    2 +-
 Src/DasherCore/Alphabet/AlphIO.h   |    2 +-
 Src/DasherCore/ColourIO.cpp        |    2 +-
 Src/DasherCore/ColourIO.h          |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Src/DasherCore/Alphabet/AlphIO.cpp b/Src/DasherCore/Alphabet/AlphIO.cpp
index 718e1f1..5bf7318 100644
--- a/Src/DasherCore/Alphabet/AlphIO.cpp
+++ b/Src/DasherCore/Alphabet/AlphIO.cpp
@@ -37,7 +37,7 @@ static char THIS_FILE[] = __FILE__;
 #endif
 #endif
 
-CAlphIO::CAlphIO(std::string SystemLocation, std::string UserLocation, std::vector<std::string> Filenames)
+CAlphIO::CAlphIO(std::string SystemLocation, std::string UserLocation, std::vector<std::string> &Filenames)
 :BlankInfo(), SystemLocation(SystemLocation), UserLocation(UserLocation), Filenames(Filenames), LoadMutable(false), CData("") {
   CreateDefault();
 
diff --git a/Src/DasherCore/Alphabet/AlphIO.h b/Src/DasherCore/Alphabet/AlphIO.h
index fd83d03..8a6a4be 100644
--- a/Src/DasherCore/Alphabet/AlphIO.h
+++ b/Src/DasherCore/Alphabet/AlphIO.h
@@ -90,7 +90,7 @@ public:
     std::string m_strDefaultContext;
   };
 
-  CAlphIO(std::string SystemLocation, std::string UserLocation, std::vector < std::string > Filenames);
+  CAlphIO(std::string SystemLocation, std::string UserLocation, std::vector < std::string > &Filenames);
   ~CAlphIO();
   void GetAlphabets(std::vector < std::string > *AlphabetList) const;
   std::string GetDefault();
diff --git a/Src/DasherCore/ColourIO.cpp b/Src/DasherCore/ColourIO.cpp
index 0c6c7ee..37353f5 100644
--- a/Src/DasherCore/ColourIO.cpp
+++ b/Src/DasherCore/ColourIO.cpp
@@ -23,7 +23,7 @@ static char THIS_FILE[] = __FILE__;
 
 // TODO: Share information with AlphIO class?
 
-CColourIO::CColourIO(std::string SystemLocation, std::string UserLocation, std::vector<std::string> Filenames)
+CColourIO::CColourIO(std::string SystemLocation, std::string UserLocation, std::vector<std::string> &Filenames)
 :BlankInfo(), SystemLocation(SystemLocation), UserLocation(UserLocation), Filenames(Filenames), LoadMutable(false), CData("") {
   CreateDefault();
 
diff --git a/Src/DasherCore/ColourIO.h b/Src/DasherCore/ColourIO.h
index 5977747..5f18697 100644
--- a/Src/DasherCore/ColourIO.h
+++ b/Src/DasherCore/ColourIO.h
@@ -40,7 +40,7 @@ public:
     std::vector < int >Blues;
   };
 
-  CColourIO(std::string SystemLocation, std::string UserLocation, std::vector < std::string > Filenames);
+  CColourIO(std::string SystemLocation, std::string UserLocation, std::vector < std::string > &Filenames);
   void GetColours(std::vector < std::string > *ColourList) const;
   const ColourInfo & GetInfo(const std::string & ColourID);
   void SetInfo(const ColourInfo & NewInfo);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]