summaryrefslogtreecommitdiff
path: root/linguistic
AgeCommit message (Collapse)AuthorFilesLines
2014-03-21coverity#982461 Unchecked dynamic_castCaolán McNamara1-1/+1
Change-Id: I3933b2cd03b8e1dff7bcb106d841a429e4d0ba53
2014-03-18remove unused parameterNoel Grandin2-3/+3
Change-Id: Iab723e78b0305dadee5598b21a9ea78093109b65
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin3-4/+4
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann30-375/+375
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from linguisticAlexander Wilms2-8/+8
Change-Id: I9ed8b9cf844d9e5909cc87dac1438ec7a54613b8 Reviewed-on: https://gerrit.libreoffice.org/8280 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-24Remove unnecessary extractInterfaceStephan Bergmann1-5/+24
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
2014-02-19unotools: sal_Bool -> boolStephan Bergmann3-3/+3
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-18Drop unnecessary #includeTakeshi Abe1-1/+0
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-13coverity#737241 Uncaught exceptionCaolán McNamara2-2/+5
Change-Id: If7c4bdc095c0c235f6f24107c05e7fcde0d5a023
2014-02-12convert SvStream::operator>> methods to ReadXXX methodsNoel Grandin1-5/+5
First, I updated the clang rewriter to do the conversion. Then I lightly hand-tweaked the output for the few places where the rewriter messed up, mostly when dealing with calls on "this". Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9 Reviewed-on: https://gerrit.libreoffice.org/7879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-11coverity#705125 Invalid iterator comparisonCaolán McNamara1-2/+1
Change-Id: Ifa84db9cc6bd3622a562c31f7624aee6fa157807
2014-02-11coverity#705124 Invalid iterator comparisonCaolán McNamara1-2/+1
Change-Id: I3066e838c13cd6a937c7dd37da23310ddfb014c4
2014-02-11coverity#705123 Invalid iterator comparisonCaolán McNamara1-2/+1
Change-Id: I0b055ba0a4c19f6cb6e7b929baee8aee8ca0dc78
2014-02-06Introduce com.sun.star.util.thePathSettings singleton.Matúš Kukan1-2/+2
To replace single-instance com.sun.star.util.PathSettings service, incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f Keeping util::PathSettings::create in sc/source/ui/vba/vbaapplication.cxx because for some reason util::thePathSettings::get does not work in sc_macros_test while testing sc/qa/extras/testdocuments/Ranges.xls. Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-04fdo#44314 Unicode hyphenation at soft hyphens with two extra char.László Németh2-11/+5
Change-Id: I4b8eba6d8353e4207cac4a8b24d2b9f0440ce9e6
2014-02-02fdo#54938 Convert bridges, editeng and others to cppu::supportsServiceAlexandre Vicenzi1-60/+20
Change-Id: I7ff5189473c3e0831c2f1e95264d1a04f3b716a9 Reviewed-on: https://gerrit.libreoffice.org/7761 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-30fdo#44314 non-standard hyphenation (fix previous commit)László Németh1-4/+6
Change-Id: Ib830cf5b57051039106d1f60059fe8a3bdbecf1a
2014-01-30fdo#44314 non-standard hyphenation at soft hyphens + with pers. dic.László Németh3-20/+83
Change-Id: I25e7c13036c6ce1948cc33d45901ef69a258fb03
2014-01-28bool improvementsStephan Bergmann9-27/+27
Change-Id: I2337b6ffd51c24a3d2de80591bf3b989b2c5936d
2014-01-20Removed unused solar.h reference in linguisticAlexandre Vicenzi3-7/+0
Change-Id: I43a78b0a24d92362100cf9fab956120f01843222 Reviewed-on: https://gerrit.libreoffice.org/7516 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-14bool improvementsStephan Bergmann1-4/+4
Change-Id: Ia940d5a064f60c147e743e9e28ac2252cebff840
2014-01-09Consolidate XServiceInfo for classes derived from SvXMLImportStephan Bergmann2-12/+1
Change-Id: I5a269d8b7e95049c67ae14b06a79b417bc91a474
2014-01-08Consolidate XServiceInfo for classes derived from SvXMLExportStephan Bergmann2-11/+1
Change-Id: Ia3e2b5e682a64844bb6c713912c50c7681393d52
2014-01-01Resolves: fdo#72464 Character line break is set to 0 Options/.../Writing AidsJulien Nabet1-1/+1
Change-Id: I9f3d1c64fde064fc7ba9bdfcb9e35032a0c40255
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann1-2/+2
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-16Clean-up uno/lbnames.hStephan Bergmann11-12/+0
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-12Don't hold css::uno::Type instances by pointerStephan Bergmann1-41/+41
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry. And as the arrays of such need to be initialized dynamically anyway, also change their name members to proper OUStrings while at it. Plus some const clean-up. Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara1-1/+1
Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-11Revert "Don't hold css::uno::Type instances by pointer"Stephan Bergmann1-41/+41
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now: Ach, old GCC doesn't like plain string literals to initialize members of OUString type... Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11Don't hold css::uno::Type instances by pointerStephan Bergmann1-41/+41
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry. And as the arrays of such need to be initialized dynamically anyway, also change their name members to proper OUStrings while at it. Plus some const clean-up. Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-10Drop duplicate #includeTakeshi Abe1-1/+0
Change-Id: Ib8969d5cd4898b81a5dcd90dc313abd28adfe052
2013-12-06Default OMultiTypeInferfaceContainerHelperVar equalImpl parameterStephan Bergmann1-4/+1
...and assorted OUStringHash clean up Change-Id: I779904e1275e8df88f567beb388d1d11af9e9671
2013-12-04remove some STRING_NOTFOUND usageNoel Grandin1-6/+6
from old, probably dead code. Completely untested. But at least it's not in my grep results anymore. Change-Id: I9d917d0558bcab25a48fa36140beaa92150b62c9
2013-12-03fix spelling delimeter -> delimiterNoel Grandin1-2/+2
Change-Id: I12a330e922f8f6ffe9c746a26e5b32c0bbae626a
2013-12-03convert xub_StrLen->sal_Int32 in linguisticNoel Grandin2-6/+6
Change-Id: Id2e49e43bc149ee639cdbe5b7a1000049fb87978
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin1-1/+1
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-21remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsLNoel Grandin1-2/+2
Convert code like this: if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aStr == "rem") which compiles down to the same code. Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
2013-11-20Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin1-2/+2
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin1-2/+2
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin1-6/+6
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-1/+1
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin5-5/+5
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-17/+17
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-06convert linguistic::isUpper from xub_StrLen to sal_Int32Noel Grandin1-1/+1
Change-Id: I7bf426e1753b3761c9ce8930ad637526a9895495
2013-11-05convert xub_StrLen to sal_Int32Noel Grandin1-4/+3
Convert code like: xub_StrLen nLen = aStr.getLength(); into sal_Int32 nLen = aStr.getLength(); Change-Id: Ib0af6b747068257478918fd1cc93e4925f32ac47
2013-11-05fixincludeguards.sh: linguisticThomas Arnhold15-30/+30
Change-Id: I8c5d9e5fcf8790e6c60242cf009992a061f8f01d
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin2-5/+5
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-10-23clean up some include guardsThomas Arnhold1-2/+2
Conflicts: sw/source/ui/inc/content.hxx Change-Id: I58d81881271fc6e3320bf3b5f1321594b28614a6 Reviewed-on: https://gerrit.libreoffice.org/6388 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist21-37/+37
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-21convert lcl_GetToken from xub_StrLen to sal_Int32Caolán McNamara1-6/+5
Change-Id: I72e98f1059280ed05b6cf77a6d69e522b4b8c075