faubackup2/src/regexp regexp.cpp,1.5,1.6 regexp.hpp,1.3,1.4

Erik Merkel <[email protected]> Tue, 20 Sep 2005 13:59:15 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/src/regexp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26301/src/regexp

Modified Files:
	regexp.cpp regexp.hpp 
Log Message:
use call by ref instead of call by value


Index: regexp.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/regexp/regexp.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** regexp.cpp	28 Jun 2005 22:26:12 -0000	1.5
--- regexp.cpp	20 Sep 2005 13:59:13 -0000	1.6
***************
*** 68,72 ****
  	static const boost::regex test("[\\s]*#.*|[^\\d\\w]*|\\n"
  				/*used for compatibility with old faubackup */
! 					"|[\\s]*1;.*" 
  					"|[\\s]*$.*");
  	boost::match_results<string::iterator> what;
--- 68,72 ----
  	static const boost::regex test("[\\s]*#.*|[^\\d\\w]*|\\n"
  				/*used for compatibility with old faubackup */
! 					"|[\\s]*1;.*"
  					"|[\\s]*$.*");
  	boost::match_results<string::iterator> what;
***************
*** 77,81 ****
  }
  
! bool matchRegExp(string toCheck, boost::regex expression)
  {
  
--- 77,81 ----
  }
  
! bool matchRegExp(string toCheck, boost::regex &expression)
  {
  

Index: regexp.hpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/regexp/regexp.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** regexp.hpp	14 Jun 2005 22:10:32 -0000	1.3
--- regexp.hpp	20 Sep 2005 13:59:13 -0000	1.4
***************
*** 21,25 ****
  bool rekursiveRule(std::string String);
  bool commentLine(std::string String);
! bool matchRegExp(string toCheck, boost::regex expression);
  
  /** extracts the "DefautRule" parameter from an config-file line;
--- 21,25 ----
  bool rekursiveRule(std::string String);
  bool commentLine(std::string String);
! bool matchRegExp(string toCheck, boost::regex &expression);
  
  /** extracts the "DefautRule" parameter from an config-file line;



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php