Author: aschnell Date: Tue Mar 3 13:41:05 2009 New Revision: 55876 URL: http://svn.opensuse.org/viewcvs/yast?rev=55876&view=rev Log: - added some consts Modified: trunk/storage/libstorage/src/AsciiFile.cc trunk/storage/libstorage/src/AsciiFile.h Modified: trunk/storage/libstorage/src/AsciiFile.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AsciiFile.cc?rev=55876&r1=55875&r2=55876&view=diff ============================================================================== --- trunk/storage/libstorage/src/AsciiFile.cc (original) +++ trunk/storage/libstorage/src/AsciiFile.cc Tue Mar 3 13:41:05 2009 @@ -69,7 +69,7 @@ return appendFile( File_Cv, Lines_C ); } -bool AsciiFile::appendFile( const string& Name_Cv, vector<string>& Lines_Cr ) +bool AsciiFile::appendFile( const string& Name_Cv, vector<string>& Lines_Cr ) const { ifstream File_Ci( Name_Cv.c_str() ); classic(File_Ci); @@ -86,7 +86,7 @@ return Ret_bi; } -bool AsciiFile::appendFile( AsciiFile& File_Cv, vector<string>& Lines_Cr ) +bool AsciiFile::appendFile( AsciiFile& File_Cv, vector<string>& Lines_Cr ) const { unsigned Idx_ii = 0; @@ -190,7 +190,7 @@ return File_Ci.good(); } -bool AsciiFile::removeIfEmpty() +bool AsciiFile::removeIfEmpty() const { bool ret = Lines_C.empty(); if( ret && access( Name_C.c_str(), W_OK )==0 ) Modified: trunk/storage/libstorage/src/AsciiFile.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AsciiFile.h?rev=55876&r1=55875&r2=55876&view=diff ============================================================================== --- trunk/storage/libstorage/src/AsciiFile.h (original) +++ trunk/storage/libstorage/src/AsciiFile.h Tue Mar 3 13:41:05 2009 @@ -46,13 +46,13 @@ unsigned numLines() const; const string& fileName() const; unsigned differentLine( const AsciiFile& File_Cv ) const; - bool removeIfEmpty(); + bool removeIfEmpty() const; const vector<string>& lines() const { return Lines_C; } protected: - bool appendFile( const string& Name_Cv, std::vector<string>& Lines_Cr ); - bool appendFile( AsciiFile& File_Cv, std::vector<string>& Lines_Cr ); + bool appendFile( const string& Name_Cv, std::vector<string>& Lines_Cr ) const; + bool appendFile( AsciiFile& File_Cv, std::vector<string>& Lines_Cr ) const; void removeLastIf(string& Text_Cr, char Char_cv) const; bool BackupCreated_b; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org