summaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Collapse)Author
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
Change-Id: I3adb8d5664ecd8fafccc7bae0656f15100484422
2015-08-19io: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
with the variadic variants. Change-Id: Iad03db6b729a785ab8b29a69943fa45f5a36b21b Reviewed-on: https://gerrit.libreoffice.org/17849 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-18Some oslCondition -> osl::ConditionStephan Bergmann
Change-Id: Ib2c98db9ffd5871b6422c05f0230bbe27d1ba729
2015-08-14loplugin: defaultparamsNoel Grandin
Change-Id: I320eb6149793689c496b14090e8e0243397d01ba
2015-08-03inline some use-once typedefsNoel Grandin
Change-Id: I55cc82c8e180cce371c996690608090b1bfdfda4 Reviewed-on: https://gerrit.libreoffice.org/17494 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-27inline a bunch of use-once macrosNoel Grandin
no point in having a macro unless it's actually going to reduce the number of lines of code Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
2015-07-08Avoid loplugin:staticmethods in non-debug buildStephan Bergmann
Change-Id: I205531a51f9d3e6611aafc5eb8fbd1ab49a517d8
2015-07-02loplugin:unusedmethods bridges,ucbhelper,io,pyunoNoel Grandin
Change-Id: I483deb33b9d861af679d4a36e13585345401e10d Reviewed-on: https://gerrit.libreoffice.org/16681 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
Change-Id: Ia282c33c70977e3c9e8f1c6fd86bee2fa6eca5c3
2015-06-02loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann
Change-Id: I61dc52779d3b873ba5429ddf53ba5be159b28ff2
2015-05-08Clean up passing Boolean value to osl::Socket::setOptionStephan Bergmann
Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I736518e38a9badf9ee24564952a135bd5019d110
2015-03-29Clean up template-parameter-dependent C-style castsStephan Bergmann
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I5f2240b6ac5210f185081bec891ad6d3f7901679
2015-03-17Fix various XServiceInfo implementationsStephan Bergmann
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-01-20enable tcpNoDelay for loopback connections automaticallyNoel Grandin
it can make a significant speed difference for applications talking to the office binary via UNO Change-Id: If6e901908fe6a6119ac1fd0bf8feebabe5602ff7 Reviewed-on: https://gerrit.libreoffice.org/13856 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-20Some more loplugin:cstylecast: ioStephan Bergmann
Change-Id: Iefd3268299b43ba08b9bc7699aa104288119ff4a
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-16io: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ib05e759a1223d71e738940f6f9298ac593d94a27
2014-11-26Fix C4716: 'anonymous namespace'::Input::readBytes : must return a valueTor Lillqvist
Change-Id: I1d660da4cdd3f612ac1478e37e613446d4253fae
2014-11-24Unit test for fdo#79941 (handle short reads)Stephan Bergmann
...done as a subsequentcheck as doing it as a BootstrapFixtureBase (which is the easiest way) makes it depend on later modules in the dependency chain. Change-Id: I9588bae409b38aa373ccfa855042f598b6e2bb2b
2014-11-21fdo#79941: Properly handle short readsStephan Bergmann
Change-Id: Ie762ff272410d809382f98a1d446946b566df747
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl
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
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
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
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin
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>
2014-09-29loplugin: cstylecastNoel Grandin
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-08-25set names on a bunch more threads...Michael Stahl
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-06-05various: remove SAL_THROW macroNoel Grandin
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-02fdo#68849: Add header guards to all include filesJens Carl
added header guards for directories basebmp/, chart2/, cppuhelper/, include/test/, io/test/, sax/test, shell/, writerfilter/, and xmlhelp/ Change-Id: I0e29a9b75c26d71f58aa98986b52f6d3b46015a6 Reviewed-on: https://gerrit.libreoffice.org/9615 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-30fix . in #defineNoel Grandin
as a consequence of commit 9e3cc6b47444f988a68ca3ddcad779ed0480b00c "fdo#68849: Add header guards to all include files" Change-Id: Ibabf0d88ff4d928311ad5079ac3aa1fd6a2c1e6d
2014-05-30fdo#68849: Add header guards to all include filesJens Carl
Added header guard to files in directories i18npool/, include/, and io/ Change-Id: I7ba5b5f0ffdf5dedb8fd40e8efa06936e7c23591 Reviewed-on: https://gerrit.libreoffice.org/9558 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-29remove more unnecesary OUString constructor useNoel Grandin
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-27remove unnecessary use of Reference constructor in throwNoel Grandin
Convert code like this: throw IOException("xx", Reference< XInterface >(static_cast<OWeakObject*>(this)) ); to this: throw IOException("xx", static_cast<OWeakObject*>(this) ); Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-04-23io: sal_Bool->boolNoel Grandin
Change-Id: I136c98cbe15d1c6629028392a9573066320b3a04
2014-04-22second test should be DataOutputStreamStephan Bergmann
...as <https://gerrit.libreoffice.org/#/c/9007/> "cppcheck: multiCondition, second test should be DataOutputStream" found out for an effective duplicate of this code that got removed with the previous commit "Remove dead test code." Change-Id: Ib7b088f065def2d5e954837d22178521f85c49fe
2014-04-18Typo: s/shure/sureTor Lillqvist
Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
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
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-12coverity#707937 Uninitialized pointer fieldCaolán McNamara
Change-Id: I25b92686b08137a5292de620d4e348019c21a739
2014-03-12coverity#707936 Uninitialized pointer fieldCaolán McNamara
Change-Id: I0ae177349408fd49832056fbc4c300e8e77b2417
2014-03-08coverity#707939 Uninitialized scalar fieldCaolán McNamara
Change-Id: I5cbb4e2fef4361085840c914e26bb494566a4600
2014-03-08coverity#707938 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ic76e70a33ed33a94e06faf0168e9a740c736a19e
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from ioAlexander Wilms
Change-Id: I46f8c4f793596b0e6feb2db7b9302b9b6eb9644b Reviewed-on: https://gerrit.libreoffice.org/8273 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21bool improvementsStephan Bergmann
Change-Id: Ia6f86e38cb46a5f7ac634ad0afb66701811e6758