Permalink
Browse files

better use std::for_each

  • Loading branch information...
1 parent 958abe3 commit a5ca3bf68c884bea6cffa11037a168068064827c @pkrumins committed Dec 17, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/hwnd-finder.cpp
View
@@ -69,10 +69,9 @@ static inline
std::vector<std::string> &
trim(std::vector<std::string> &container)
{
- std::transform(
+ std::for_each(
container.begin(),
container.end(),
- container.begin(),
std::ptr_fun<std::string &>(trim)
);
return container;
@@ -124,7 +123,7 @@ HwndFinder::find(const std::string &def)
return hwnd;
}
-#if 1
+#if DEBUG
int main()
{
HwndFinder hf;

0 comments on commit a5ca3bf

Please sign in to comment.