Kaydet (Commit) e3104eb2 authored tarafından Caolán McNamara's avatar Caolán McNamara

assert on empty line

Change-Id: Ifa3cccb13a3595998d4c85957a69fb7ecb047dd0
Reviewed-on: https://gerrit.libreoffice.org/52525Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 177dbe96
...@@ -376,7 +376,7 @@ ErrCode DictionaryNeo::loadEntries(const OUString &rMainURL) ...@@ -376,7 +376,7 @@ ErrCode DictionaryNeo::loadEntries(const OUString &rMainURL)
// remaining lines - stock strings (a [==] b) // remaining lines - stock strings (a [==] b)
while (pStream->ReadLine(aLine)) while (pStream->ReadLine(aLine))
{ {
if (aLine[0] == '#') // skip comments if (aLine.isEmpty() || aLine[0] == '#') // skip comments
continue; continue;
OUString aText = OStringToOUString(aLine, RTL_TEXTENCODING_UTF8); OUString aText = OStringToOUString(aLine, RTL_TEXTENCODING_UTF8);
uno::Reference< XDictionaryEntry > xEntry = uno::Reference< XDictionaryEntry > xEntry =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment