summaryrefslogtreecommitdiffstats
path: root/stoc/source
Commit message (Collapse)AuthorAgeFilesLines
* loplugin:deletedspecialStephan Bergmann2015-02-073-6/+6
| | | | Change-Id: I8ec246416736bc0316c222d1b9435bd2747597b8
* convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara2015-02-051-4/+2
| | | | | | and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
* Use vector::dataStephan Bergmann2015-01-283-10/+5
| | | | | | | ...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
* Some more loplugin:cstylecast clean-upStephan Bergmann2015-01-282-5/+5
| | | | Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
* Some more loplugin:cstylecast: stocStephan Bergmann2015-01-208-60/+57
| | | | Change-Id: I3d820a1df3750d20e704a163f45c16ea29a1b4bd
* fdo#39440 reduce scope of local variablesMichael Weghorn2015-01-122-6/+3
| | | | | | | | | This addresses some cppcheck warnings. Change-Id: I46b9293eed0cba2ebca119cc1fb0a6334ea66308 Reviewed-on: https://gerrit.libreoffice.org/13844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Just use WeakImplHelper1 instead of ImplHelper1Stephan Bergmann2015-01-071-31/+2
| | | | Change-Id: Iadc5960ef22289c044a0c85accaefb4f60b6097f
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-048-27/+28
| | | | Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
* stoc: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-2/+2
| | | | Change-Id: I776bbe6077b33f22657141ca875743c67b793c48
* stoc: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-169-56/+51
| | | | Change-Id: If8c20c8a0958016c14007406244fc8ab9a742933
* cppuhelper: clean up public headers with include-what-you-useMichael Stahl2014-11-184-0/+5
| | | | Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-174-0/+5
| | | | | | | | | 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-141-1/+1
| | | | | | | 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-121-1/+1
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Bin unused include files, thanks to Andrea GelminiTor Lillqvist2014-11-064-208/+0
| | | | Change-Id: I848505b1d4ff03779b89a08d4aeefd6ea0ff205b
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-293-3/+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>
* loplugin: cstylecastNoel Grandin2014-09-294-7/+7
| | | | Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
* fdo#83512 Make use of OUStringHash and OStringHashDaniel Sikeler2014-09-185-78/+25
| | | | | Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happyStephan Bergmann2014-08-073-0/+3
| | | | Change-Id: I004905375489fa5533ab4af13ebba439ba792384
* use BOOST_STATIC_ASSERT for sizeof checkMichael Stahl2014-07-241-3/+5
| | | | Change-Id: Iad00aa47ef65fe163eff407549c26eb3590ab132
* DBG_ASSERT->assert when followed by dereferenceCaolán McNamara2014-07-071-1/+1
| | | | Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
* fVal->nValCaolán McNamara2014-06-241-4/+4
| | | | Change-Id: Ia5b041094f29e42cb60f2c83888cace42b91cc13
* coverity#982255 Operands don't affect resultCaolán McNamara2014-06-241-1/+1
| | | | | | | | | | | | | fVal started out as a double, but is now a sal_Int64 since commit 353607df2ed59f00ad67a74de29b3db662ea960a Author: Lars Langhans <lla@openoffice.org> Date: Mon Oct 9 13:21:27 2000 +0000 #79269# convert to hyper doesn't use toDouble any longer so the comparison is always false Change-Id: Ib0b0a78ba3763fb6564219e69111de13b5afc870
* improve the inlinesimplememberfunctions clang pluginNoel Grandin2014-06-174-9/+2
| | | | Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
* stoc: remove SAL_THROW macroNoel Grandin2014-06-0518-200/+108
| | | | Change-Id: I7443c855a7145837621887030b0d3d01cca2a5ac
* fdo#68849: Add header guards to all include filesJens Carl2014-06-012-5/+8
| | | | | | | | | Added header guards to files in directories stoc/, and svtools/ Change-Id: Ib6691b0e3fa09d71696ab947d357e489eb35df66 Reviewed-on: https://gerrit.libreoffice.org/9584 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* remove more unnecesary OUString constructor useNoel Grandin2014-05-297-54/+52
| | | | | | when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
* remove more unnecessary use of OUString constructorNoel Grandin2014-05-271-6/+4
| | | | Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
* get stoc to build againCaolán McNamara2014-05-232-2/+2
| | | | Change-Id: Ie4f04f8d5daf4af66057ec1ead4372c2ef0e7056
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2014-05-2312-66/+60
| | | | Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-2311-108/+61
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* stoc: fix includesThomas Arnhold2014-05-2226-271/+271
| | | | Change-Id: I0809bfa6897d469e63d6e84898f60aae16a14862
* stoc: convert TEST_LIST_CLASSES case alsoThomas Arnhold2014-05-222-3/+3
| | | | Change-Id: Ib7b00f052c5b907ccc9b0aba924ada41ff1db023
* stoc: make use of css aliasThomas Arnhold2014-05-2236-482/+482
| | | | Change-Id: I1dd85a7b1236cfebd5e653fe6d329968e556364b
* stoc: remove using namespace from headersThomas Arnhold2014-05-227-154/+163
| | | | Change-Id: I1bee29ddcef66cb38ef2619507ad66c886f6f20d
* enhance pass-by-ref plugin to detect large argumentsNoel Grandin2014-05-202-2/+2
| | | | | | | Detect arguments larger than 64 chars passed by value. Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-1510-22/+22
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12Julien Nabet2014-05-141-1/+1
| | | | Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
* coverity#708240 Uninitialized pointer fieldCaolán McNamara2014-05-101-0/+2
| | | | Change-Id: I82bb1587d74f7b1f012ff01d0f68ea8cffd16112
* stoc: sal_Bool->boolNoel Grandin2014-04-3012-117/+117
| | | | Change-Id: Id5aaa3ddfe2cfacbe1bddcdeccb9e775ad84d858
* Clean up function declarationsStephan Bergmann2014-04-092-4/+4
| | | | Change-Id: Ife3cb18d22c57c9c2e59317b68cf11a4bf94a40a
* remove unnecessary scope qualifier from sal_Bool usesNoel Grandin2014-04-031-8/+8
| | | | | | i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
* Unused declarationStephan Bergmann2014-04-031-3/+0
| | | | Change-Id: Ib753cacf91baa6a761ac8f971b67c0f5ade555b6
* Use boost::noncopyableStephan Bergmann2014-04-038-52/+41
| | | | Change-Id: I9cba1299c54f196a5a7b35384f4c15bbbea273bb
* Explicitly mark overriding destructors as "virtual"Stephan Bergmann2014-04-016-8/+8
| | | | | | | | It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
* Remove unused inline functionStephan Bergmann2014-04-011-5/+0
| | | | Change-Id: Ieafdefb5a6981ee2f375cb9ba852de7b21688b42
* Work around MSC "'override' cannot be used with 'inline'" bugStephan Bergmann2014-03-261-1/+1
| | | | Change-Id: If736316402c49153d4c8552672c90552548f90b8
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-2629-509/+509
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* Adapt to sal/log.hxxStephan Bergmann2014-03-251-2/+3
| | | | Change-Id: Ic197b0fc962ff33b0f0a3c7f04d8208ea9123094
* Use cppu::BaseMutex instead of plain osl::Mutex as baseStephan Bergmann2014-03-182-15/+16
| | | | Change-Id: Ib4fa4669adb217be810840b3f8e4f0e2dda0f7c5