[yast-commit] r56609 - in /trunk/storage/libstorage/src: Volume.cc Volume.h
Author: aschnell Date: Fri Apr 3 12:06:12 2009 New Revision: 56609 URL: http://svn.opensuse.org/viewcvs/yast?rev=56609&view=rev Log: - added some const Modified: trunk/storage/libstorage/src/Volume.cc trunk/storage/libstorage/src/Volume.h Modified: trunk/storage/libstorage/src/Volume.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.cc?rev=56609&r1=56608&r2=56609&view=diff ============================================================================== --- trunk/storage/libstorage/src/Volume.cc (original) +++ trunk/storage/libstorage/src/Volume.cc Fri Apr 3 12:06:12 2009 @@ -1078,12 +1078,12 @@ } -int Volume::checkDevice() +int Volume::checkDevice() const { return( checkDevice(dev)); } -int Volume::checkDevice( const string& device ) +int Volume::checkDevice(const string& device) const { struct stat sbuf; int ret = 0; @@ -1799,7 +1799,7 @@ return( ret ); } -string Volume::getDmcryptName() +string Volume::getDmcryptName() const { string nm; if( cont->type()!=LOOP ) Modified: trunk/storage/libstorage/src/Volume.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.h?rev=56609&r1=56608&r2=56609&view=diff ============================================================================== --- trunk/storage/libstorage/src/Volume.h (original) +++ trunk/storage/libstorage/src/Volume.h Fri Apr 3 12:06:12 2009 @@ -197,8 +197,8 @@ protected: void init(); void setNameDev(); - int checkDevice(); - int checkDevice( const string& device ); + int checkDevice() const; + int checkDevice(const string& device) const; storage::MountByType defaultMountBy( const string& mp="" ); bool allowedMountBy( storage::MountByType mby, const string& mp="" ); void getFsData( SystemCmd& blkidData ); @@ -216,7 +216,7 @@ void getFstabOpts( std::list<string>& ol ); bool getLoopFile( string& fname ) const; void setExtError( const SystemCmd& cmd, bool serr=true ); - string getDmcryptName(); + string getDmcryptName() const; bool needLosetup() const; bool needCryptsetup() const; int doLosetup(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org