[Ipstream-devel] IPSocket/lib/helpers/config_reader config_reader.cpp, 1.3, 1.4
Status: Beta
Brought to you by:
kontramot
|
From: Sergey V. B. <kon...@us...> - 2010-03-19 07:29:47
|
Update of /cvsroot/ipstream/IPSocket/lib/helpers/config_reader In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12586/lib/helpers/config_reader Modified Files: config_reader.cpp Log Message: minor reformating Index: config_reader.cpp =================================================================== RCS file: /cvsroot/ipstream/IPSocket/lib/helpers/config_reader/config_reader.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config_reader.cpp 9 Aug 2006 15:32:57 -0000 1.3 --- config_reader.cpp 19 Mar 2010 07:29:39 -0000 1.4 *************** *** 21,30 **** using std::string; ! bool ConfigRead( const string& Data, const IStringProcessor& StringProcessor, ! IEmpty* Container, char delimiter ) { // If arguments are valid if ( Data.empty() || !Container ) ! return false; // Critical section for StringProcessor call --- 21,31 ---- using std::string; ! bool ConfigRead( const string& Data, const IStringProcessor& StringProcessor, IEmpty* Container, char delimiter ) { // If arguments are valid if ( Data.empty() || !Container ) ! { ! return false; ! } // Critical section for StringProcessor call *************** *** 51,55 **** --- 52,58 ---- // If read string is emty then read next string if ( string::npos == uiShift ) + { continue; + } // Drop right 'space' and TAB symbols *************** *** 82,85 **** return false; ! } --- 85,89 ---- return false; ! ! } // bool ConfigRead( const string& Data, const IStringProcessor& StringProcessor, IEmpty* Container, char delimiter ) |