diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-20 14:01:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-21 09:14:14 +0100 |
commit | 6333dcf6f18c5d5a03e5daa267f89c06a528b698 (patch) | |
tree | e5d5246bd595e0a647b6cac436aba5d4f4351259 /lingucomponent | |
parent | 07f24df0e8dbc035f2f9a24c12879848a1f318f1 (diff) |
loplugin:indentation (macOS)
* Some .m/.mm files that still contained tabs instead of spaces have been
cleaned up with Emacs' untabify (and
apple_remote/source/HIDRemoteControlDevice.m needed further manual adaptions):
apple_remote/source/GlobalKeyboardDevice.m
apple_remote/source/HIDRemoteControlDevice.m
apple_remote/source/KeyspanFrontRowControl.m
apple_remote/source/RemoteControl.m
vcl/osx/a11yrolehelper.mm
* Some of the changes predate 0626e66d761de18f62e4d00d427903032da9d517 "Avoid
loplugin:indentation after preproc conditional inclusion lines" and would
likely have no longer been flagged since.
Change-Id: Ibf5faffa743c7f79b36109d9879eb79d63c8c40f
Reviewed-on: https://gerrit.libreoffice.org/68090
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index ba43a6bcaa7d..a141b8752ac9 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -92,15 +92,15 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales() { MutexGuard aGuard( GetLinguMutex() ); - // this routine should return the locales supported by the installed - // dictionaries. So here we need to parse both the user edited - // dictionary list and the shared dictionary list - // to see what dictionaries the admin/user has installed + // this routine should return the locales supported by the installed + // dictionaries. So here we need to parse both the user edited + // dictionary list and the shared dictionary list + // to see what dictionaries the admin/user has installed - int numshr; // number of shared dictionary entries - rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8; + int numshr; // number of shared dictionary entries + rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8; - std::vector<NSString *> postspdict; + std::vector<NSString *> postspdict; if (!numdict) { @@ -263,12 +263,12 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales() } else { /* no dictionary.lst found so register no dictionaries */ numdict = 0; - aDEncs = nullptr; - aDLocs = nullptr; - aDNames = nullptr; - aSuppLocales.realloc(0); - } + aDEncs = nullptr; + aDLocs = nullptr; + aDNames = nullptr; + aSuppLocales.realloc(0); } + } return aSuppLocales; } @@ -307,16 +307,16 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale sal_Int16 nRes = -1; - // first handle smart quotes both single and double + // first handle smart quotes both single and double OUStringBuffer rBuf(rWord); - sal_Int32 n = rBuf.getLength(); - sal_Unicode c; + sal_Int32 n = rBuf.getLength(); + sal_Unicode c; for (sal_Int32 ix=0; ix < n; ix++) { c = rBuf[ix]; if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = u'"'; if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = u'\''; - } - OUString nWord(rBuf.makeStringAndClear()); + } + OUString nWord(rBuf.makeStringAndClear()); if (n) { @@ -361,7 +361,7 @@ sal_Bool SAL_CALL { MutexGuard aGuard( GetLinguMutex() ); - if (rLocale == Locale() || !rWord.getLength()) + if (rLocale == Locale() || !rWord.getLength()) return true; if (!hasLocale( rLocale )) @@ -411,14 +411,14 @@ Reference< XSpellAlternatives > // first handle smart quotes (single and double) OUStringBuffer rBuf(rWord); - sal_Int32 n = rBuf.getLength(); - sal_Unicode c; + sal_Int32 n = rBuf.getLength(); + sal_Unicode c; for (sal_Int32 ix=0; ix < n; ix++) { c = rBuf[ix]; if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = u'"'; if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = u'\''; - } - OUString nWord(rBuf.makeStringAndClear()); + } + OUString nWord(rBuf.makeStringAndClear()); if (n) { @@ -438,24 +438,24 @@ Reference< XSpellAlternatives > { aStr.realloc( count ); OUString *pStr = aStr.getArray(); - for (int ii=0; ii < count; ii++) - { + for (int ii=0; ii < count; ii++) + { // if needed add: if (suglst[ii] == NULL) continue; NSString* guess = [guesses objectAtIndex:ii]; OUString cvtwrd(reinterpret_cast<const sal_Unicode*>([guess cStringUsingEncoding:NSUnicodeStringEncoding]), static_cast<sal_Int32>([guess length])); pStr[ii] = cvtwrd; - } + } } - [pool release]; + [pool release]; } - // now return an empty alternative for no suggestions or the list of alternatives if some found - SpellAlternatives *pAlt = new SpellAlternatives; - pAlt->SetWordLanguage( rWord, nLang ); - pAlt->SetFailureType( SpellFailure::SPELLING_ERROR ); - pAlt->SetAlternatives( aStr ); - xRes = pAlt; - return xRes; + // now return an empty alternative for no suggestions or the list of alternatives if some found + SpellAlternatives *pAlt = new SpellAlternatives; + pAlt->SetWordLanguage( rWord, nLang ); + pAlt->SetFailureType( SpellFailure::SPELLING_ERROR ); + pAlt->SetAlternatives( aStr ); + xRes = pAlt; + return xRes; } @@ -467,7 +467,7 @@ Reference< XSpellAlternatives > SAL_CALL { MutexGuard aGuard( GetLinguMutex() ); - if (rLocale == Locale() || !rWord.getLength()) + if (rLocale == Locale() || !rWord.getLength()) return nullptr; if (!hasLocale( rLocale )) |