[yast-commit] r57004 - /trunk/storage/libstorage/src/Dm.cc
Author: aschnell Date: Tue Apr 28 15:12:09 2009 New Revision: 57004 URL: http://svn.opensuse.org/viewcvs/yast?rev=57004&view=rev Log: - use boost function Modified: trunk/storage/libstorage/src/Dm.cc Modified: trunk/storage/libstorage/src/Dm.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dm.cc?rev=57004&r1=57003&r2=57004&view=diff ============================================================================== --- trunk/storage/libstorage/src/Dm.cc (original) +++ trunk/storage/libstorage/src/Dm.cc Tue Apr 28 15:12:09 2009 @@ -467,14 +467,7 @@ string Dm::devToTable( const string& dev ) { - string ret(undevDevice(dev)); - string::iterator it = ret.begin(); - while( it!=ret.end() ) - { - if( *it == '/' ) - *it = '|'; - ++it; - } + string ret = boost::replace_all_copy(undevDevice(dev), "/", "|"); if( dev!=ret ) y2mil("dev:" << dev << " ret:" << ret); return( ret ); -- 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