[Libreoffice-commits] core.git: sal/osl

Chris Sherlock chris.sherlock79 at gmail.com
Sun Jun 25 09:59:47 UTC 2017


 sal/osl/unx/file.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dff3a597dad3b76990311ee356e0bd603753d8d3
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Sat Jun 24 17:31:34 2017 +1000

    osl: for should be a while
    
    Change-Id: Id4e92f0c7927bbc767061461361936dbad8da778
    Reviewed-on: https://gerrit.libreoffice.org/39204
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 2689e5b73309..0452f2dfac7f 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -605,7 +605,7 @@ oslFileError FileHandle_Impl::readLineAt(
     size_t bufpos = nOffset - m_bufptr, curpos = bufpos, dstpos = 0;
     int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN;
 
-    for ( ; state != LINE_STATE_LF; )
+    while (state != LINE_STATE_LF)
     {
         if (curpos >= m_buflen)
         {


More information about the Libreoffice-commits mailing list