summaryrefslogtreecommitdiffstats
path: root/ucb
Commit message (Collapse)AuthorAgeFilesLines
* Introduce rtl::OUStringLiteral1Stephan Bergmann2014-12-172-2/+2
| | | | | | | | | | | | | | | | | | ...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
* OneDrive authfallback request is now issuedMihai Varga2014-12-154-0/+67
| | | | Change-Id: I9ee1f087322d80cbdf8ca369fccb6b6b0336062e
* OneDrive binding settingsMihai Varga2014-12-152-0/+10
| | | | Change-Id: I72c97931098c1a029d39532e3433c0aeaba73e3f
* ucb: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-127-54/+53
| | | | Change-Id: I6839e032c981fcff472f29c51c84503d6370fd1c
* java: simplify the getMSF() methodsNoel Grandin2014-12-104-10/+6
| | | | | | | Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Need <cppuhelper/queryinterface.hxx> here, too, I assumeTor Lillqvist2014-11-181-0/+1
| | | | Change-Id: Ic91023c0a5a70072fcffaaa5e16fc2e415c2e1ee
* Need <cppuhelper/queryinterface.hxx> nowTor Lillqvist2014-11-181-0/+3
| | | | Change-Id: Ib5683580273430a61e4daff84cd03b3b559fac0f
* cppuhelper: clean up public headers with include-what-you-useMichael Stahl2014-11-183-2/+7
| | | | Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
* cppu: clean up public headers with include-what-you-useMichael Stahl2014-11-182-0/+2
| | | | | | | | Unfortunately iwyu gets quite confused by the weird cyclic dependencies between various foo.h/foo.hxx and cppumaker generated headers, so it's not obvious if any improvement here is realistic... Change-Id: I0bc66f98b146712e28cabc18d56c11c08418c721
* java: make fields final where possibleNoel Grandin2014-11-1811-15/+15
| | | | | | found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-177-0/+8
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-1410-19/+27
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-125-12/+6
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-065-23/+33
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-065-33/+23
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* coverity#983989 Uncaught exceptionCaolán McNamara2014-11-061-30/+41
| | | | Change-Id: I7508ee67a10b43686600b41dd58c1a8a5aa90c51
* coverity#983985 Uncaught exceptionCaolán McNamara2014-11-061-25/+36
| | | | Change-Id: I0082d75aa2c00daa35d8d72e44fbb6da161f9774
* coverity#983984 Uncaught exceptionCaolán McNamara2014-11-061-3/+21
| | | | Change-Id: I6a166a1691e39e21a4d765ca7dd0a7fcfba8126b
* markup with event type not checker typeCaolán McNamara2014-11-051-0/+1
| | | | Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
* coverity#707418 Uncaught exceptionCaolán McNamara2014-10-311-19/+34
| | | | | | | | | and coverity#707419 Uncaught exception coverity#707420 Uncaught exception Change-Id: I98d752c14be5f7b1fccb4bdf2eeefb6bbfe12e0e
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-292-2/+0
| | | | | | | | | It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#704085 Unchecked return valueCaolán McNamara2014-10-281-1/+1
| | | | | | other patterns aren't really the same as this one Change-Id: Ie26fd5c01d156004f755017a859679e904a29520
* coverity#1247636 Uncaught exceptionCaolán McNamara2014-10-171-2/+2
| | | | Change-Id: If9d635b7345683da0bf6ef7c7b0ffba0450f5dbd
* java: final fields that can be staticNoel Grandin2014-10-171-2/+2
| | | | Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-155-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* coverity#983990 Uncaught exceptionCaolán McNamara2014-10-112-2/+3
| | | | Change-Id: I78c58822cc92c8964e0b69f44d841c5cdb84b1bb
* coverity#1130163 Unchecked return valueCaolán McNamara2014-10-111-2/+3
| | | | Change-Id: Iffc4ba146ac8f851239e93a1ace53c6b34234824
* coverity#1241375 Uncaught exceptionCaolán McNamara2014-10-105-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and coverity#1241356 Uncaught exception coverity#1241415 Uncaught exception coverity#1241449 Uncaught exception coverity#1241146 Uncaught exception coverity#1241169 Uncaught exception coverity#1241408 Uncaught exception coverity#1241452 Uncaught exception coverity#1241443 Uncaught exception coverity#1241236 Uncaught exception coverity#1241157 Uncaught exception coverity#1241283 Uncaught exception coverity#1241409 Uncaught exception coverity#1241229 Uncaught exception coverity#1241387 Uncaught exception coverity#1241050 Uncaught exception coverity#1241371 Uncaught exception coverity#1241048 Uncaught exception coverity#1241112 Uncaught exception coverity#1241351 Uncaught exception coverity#1241370 Uncaught exception coverity#1241329 Uncaught exception coverity#1241162 Uncaught exception coverity#1241103 Uncaught exception coverity#1241342 Uncaught exception coverity#1241271 Uncaught exception coverity#1241219 Uncaught exception coverity#1241245 Uncaught exception Change-Id: I3418bb54b5c385110201a99a339eba0d0d3048f5
* spelling: instanciated -> instantiatedNoel Grandin2014-10-0810-24/+24
| | | | Change-Id: I99f3010e30f81786b938dc11736ea1597cd5530d
* remove HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE check and macroMichael Stahl2014-10-022-4/+4
| | | | | | | This is supported in GCC 4.6.0 already: https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Diagnostic-Pragmas.html Change-Id: I2f67e588eea3a323a2e9c81e39e56ab2e715a817
* remove HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY check and macroMichael Stahl2014-10-022-3/+3
| | | | | | This has been supported by GCC and clang for a very long time. Change-Id: I410a2b39004c932003f8cbefe935aedb109b1163
* Remove leftover SAL_WNODEPRECATED_DECLARATIONS_PUSH/POPStephan Bergmann2014-10-011-2/+0
| | | | | | ...from times when code used std::auto_ptr. Change-Id: Ia4eca8b0b95a8846886884404009e895daba8a22
* ucb: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-10-0113-85/+38
| | | | Change-Id: I779b7a172cecd927f7d18fcbbc0f898f18089d0a
* Fix warnings in ucb/source/ucp/webdav/ (--with-webdav=serf)Stephan Bergmann2014-10-0110-80/+80
| | | | Change-Id: I6e45a8b00952dc3ef54f29536cf333bfdcee787d
* Tired of seing changes made to effectively dead workben codeStephan Bergmann2014-10-0113-3635/+0
| | | | Change-Id: I437fdceedac57bbeea7fd2a5fb7098bb71e0b259
* fdo#82577: Handle TimeNoel Grandin2014-10-011-4/+4
| | | | | | | | | | Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin: cstylecastNoel Grandin2014-09-292-24/+24
| | | | Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
* coverity#1240266 Logically dead codeCaolán McNamara2014-09-251-4/+0
| | | | Change-Id: I97256c687c6d56beef2c3664bbba8c43f685228b
* fdo#82577: Handle WindowNoel Grandin2014-09-231-3/+3
| | | | | | | Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
* fdo#83512 Make use of OUStringHash and OStringHashDaniel Sikeler2014-09-184-74/+4
| | | | | Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* ucb: prevent out of bound access in OUStringNorbert Thiebaud2014-09-121-1/+1
| | | | Change-Id: I451bf13cbf39ec13152d083a6a6728cd043f9fbd
* ucb: sal_Bool -> boolStephan Bergmann2014-09-116-9/+9
| | | | Change-Id: I333ffa13159eac5cc53c9f3985dde5a33daf8067
* fdo#55380 replaced use of obsolete interfacesDaniel Sikeler2014-09-102-18/+18
| | | | | | | Change-Id: I94fed6a9361f21457b3e631efffc0db833068aef Reviewed-on: https://gerrit.libreoffice.org/11256 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Fix *_component_getFactory function typeStephan Bergmann2014-08-281-2/+2
| | | | Change-Id: I6b7a9e15da83f1d53a5e59d26b643c363e652619
* set names on a bunch more threads...Michael Stahl2014-08-251-0/+2
| | | | Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
* java: use 'Short.valueOf' instead of 'new Short'Noel Grandin2014-08-191-1/+1
| | | | Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
* java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin2014-08-191-1/+1
| | | | Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
* java: classes in java.lang package do not need to be fully qualifiedNoel Grandin2014-08-191-1/+1
| | | | Change-Id: I7b18f62336c3a8ca4c538b30ce04c99f202a4756
* java: remove unused importsNoel Grandin2014-08-143-3/+0
| | | | Change-Id: Ic60b30141fd1dc61acfb97b811aec680a2ab9c22
* java: remove commented out codeNoel Grandin2014-08-142-25/+0
| | | | Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1