diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-06-24 17:31:34 +1000 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 11:59:26 +0200 |
commit | dff3a597dad3b76990311ee356e0bd603753d8d3 (patch) | |
tree | 725c64e8d0cf94115b2b4f2b68d56216719bdc63 /sal | |
parent | dda035f0afdd6d806954b6f2eb5ab0aa8e8f4bf5 (diff) |
osl: for should be a while
Change-Id: Id4e92f0c7927bbc767061461361936dbad8da778
Reviewed-on: https://gerrit.libreoffice.org/39204
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |