Hi Daniel,
I've just seen you are doing some great work cleaning up the o3tl stuff,
and using lambdas instead - thanks for that!
I was wondering what would be the drawbacks of going even further, and
getting rid of the std::for_each for good, and use the range-based
for-loops instead?
Like:
-    std::for_each( maAllShapes.begin(),
-                   maAllShapes.end(),
-                   []( const LayerShapeMap::value_type& cp )
-                   { cp.first->clearAllViewLayers(); } );
+    for (auto& cp : maAllShapes)
+        cp.first->clearAllViewLayers();
is I think even more readable?  Would you be up for that? :-)
All the best,
Kendy
Context
- std::for_each vs. range-based for-loops · Jan Holesovsky
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.