[Libreoffice-commits] core.git: vcl/workben

Tor Lillqvist tml at collabora.com
Thu Oct 9 23:33:59 PDT 2014


 vcl/workben/icontest.cxx |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

New commits:
commit 9e0d79b0d99c62a79256a792c7ac76825c74578c
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Oct 9 09:38:12 2014 +0300

    Add informative comment, and use 'auto' in a couple of places where sensible
    
    Change-Id: Ia01404f8d0a5e5aa94d8a9b3f45421950831c5cb

diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx
index 208864b..42634ff 100644
--- a/vcl/workben/icontest.cxx
+++ b/vcl/workben/icontest.cxx
@@ -7,6 +7,15 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+/*
+ * =======================================================================
+ *
+ * This is a quick hack to test some stuff. Work in progress. Don't touch.
+ *
+ * =======================================================================
+ */
+
+
 #include <GL/glew.h>
 
 #include <com/sun/star/lang/XComponent.hpp>
@@ -236,7 +245,7 @@ void IconTestApp::DoItWithVcl(std::vector<OUString>& aImageFiles)
 
         Point aPos(10, 10);
 
-        for (std::vector<OUString>::const_iterator i = aImageFiles.cbegin(); i != aImageFiles.end(); ++i)
+        for (auto i = aImageFiles.cbegin(); i != aImageFiles.end(); ++i)
         {
             SvFileStream aFileStream( *i, STREAM_READ );
             GraphicFilter aGraphicFilter(false);
@@ -308,7 +317,7 @@ void IconTestApp::DoItWithOpenGL(std::vector<OUString>& aImageFiles)
         CHECK_GL_ERROR();
 
         int n = 0;
-        for (std::vector<OUString>::const_iterator i = aImageFiles.cbegin(); i != aImageFiles.end(); ++i)
+        for (auto i = aImageFiles.cbegin(); i != aImageFiles.end(); ++i)
         {
             SvFileStream aFileStream( *i, STREAM_READ );
             GraphicFilter aGraphicFilter(false);


More information about the Libreoffice-commits mailing list