Author: aschnell
Date: Mon Feb 8 10:30:08 2010
New Revision: 60718
URL: http://svn.opensuse.org/viewcvs/yast?rev=60718&view=rev
Log:
- use boost::join
Modified:
branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Md.cc
branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/MdPartCo.cc
Modified: branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Md.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Md.cc?rev=60718&r1=60717&r2=60718&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Md.cc (original)
+++ branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Md.cc Mon Feb 8 10:30:08 2010
@@ -638,15 +638,9 @@
info.sb_ver = sb_ver;
info.chunk = chunk;
info.parity = md_parity;
- info.devices.clear();
- list<string>::const_iterator i=devs.begin();
- while( i!=devs.end() )
- {
- if( !info.devices.empty() )
- info.devices += ' ';
- info.devices += *i;
- ++i;
- }
+
+ info.devices = boost::join(devs, " ");
+
tinfo = info;
}
Modified: branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/MdPartCo.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/MdPartCo.cc?rev=60718&r1=60717&r2=60718&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/MdPartCo.cc (original)
+++ branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/MdPartCo.cc Mon Feb 8 10:30:08 2010
@@ -36,6 +36,7 @@
#include