Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54437 - in /trunk/storage/libstorage/src: DmmultipathCo.cc DmraidCo.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 07 Jan 2009 15:13:25 -0000
  • Message-id: <E1LKa61-0006XR-L0@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Jan 7 16:13:25 2009
New Revision: 54437

URL: http://svn.opensuse.org/viewcvs/yast?rev=54437&view=rev
Log:
- use std::list::remove_if instead of std::remove_if

Modified:
trunk/storage/libstorage/src/DmmultipathCo.cc
trunk/storage/libstorage/src/DmraidCo.cc

Modified: trunk/storage/libstorage/src/DmmultipathCo.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/DmmultipathCo.cc?rev=54437&r1=54436&r2=54437&view=diff
==============================================================================
--- trunk/storage/libstorage/src/DmmultipathCo.cc (original)
+++ trunk/storage/libstorage/src/DmmultipathCo.cc Wed Jan 7 16:13:25 2009
@@ -2,7 +2,7 @@
Textdomain "storage"
*/

-#include <iostream>
+#include <ostream>
#include <sstream>
#include <locale>
#include <boost/algorithm/string.hpp>
@@ -91,8 +91,7 @@
{
y2mil("disk:" << nm << " id:" << id);
udev_id = id;
- udev_id.erase(remove_if(udev_id.begin(), udev_id.end(),
find_begin("dm-")), udev_id.end());
- udev_id.sort();
+ udev_id.remove_if(find_begin("dm-"));
y2mil("id:" << udev_id);

DmPartCo::setUdevData(udev_id);

Modified: trunk/storage/libstorage/src/DmraidCo.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/DmraidCo.cc?rev=54437&r1=54436&r2=54437&view=diff
==============================================================================
--- trunk/storage/libstorage/src/DmraidCo.cc (original)
+++ trunk/storage/libstorage/src/DmraidCo.cc Wed Jan 7 16:13:25 2009
@@ -2,7 +2,7 @@
Textdomain "storage"
*/

-#include <iostream>
+#include <ostream>
#include <sstream>

#include "y2storage/DmraidCo.h"
@@ -79,8 +79,7 @@
{
y2mil("disk:" << nm << " id:" << id);
udev_id = id;
- udev_id.erase(remove_if(udev_id.begin(), udev_id.end(),
find_begin("dm-")), udev_id.end());
- udev_id.sort();
+ udev_id.remove_if(find_begin("dm-"));
y2mil("id:" << udev_id);

DmPartCo::setUdevData(udev_id);

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages