Permalink
Browse files

Over-egging the pudding a bit here

  • Loading branch information...
1 parent f7ab822 commit 1b6558ee30b438fb4a5739e25396a707babd8094 @nickgammon committed Jul 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 regexp.cpp
View
2 regexp.cpp
@@ -102,7 +102,7 @@ int count;
prog->m_sTarget = string; // for extracting wildcards
prog->m_iCount = count; // ditto
- prog->m_vOffsets.resize (0); // clear for copy, but leave allocated memory
+ prog->m_vOffsets.clear ();
copy (offsets.begin (), offsets.end (), back_inserter (prog->m_vOffsets));
return true; // match
}

0 comments on commit 1b6558e

Please sign in to comment.