summaryrefslogtreecommitdiffstats
path: root/io/source
Commit message (Collapse)AuthorAgeFilesLines
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-153-6/+3
| | | | | | | | | | | | | | replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Replaced for_each and algorithm include by range based loop and exception.Mario J. Rugiero2015-11-102-4/+6
| | | | | | | | | | Since the only thing used from algorithm was std::for_each, and std::exception was being used without including it. Change-Id: Ida415bfbcae2b14811183a6afa46b6f6e1ac6ab2 Reviewed-on: https://gerrit.libreoffice.org/19864 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-108-27/+27
| | | | Change-Id: I04ceb5b1514a1d0bf123a1cded5e1aac3e8dde2f
* new loplugin: oncevarNoel Grandin2015-11-091-3/+1
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-061-5/+5
| | | | Change-Id: Ifcfb6792138802f4150ccb966927818fbd3f64e3
* use uno::Reference::set method instead of assignmentNoel Grandin2015-11-043-5/+4
| | | | Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
* Fix create/destroy mismatchStephan Bergmann2015-11-031-2/+2
| | | | Change-Id: Ibff6caedae0c5ed84cf4864c7a52af56a7cea527
* com::sun::star->css in ioNoel Grandin2015-10-238-119/+119
| | | | Change-Id: I4a0cd4b29db91584c23148d659846c71b90b0d65
* coverity#1327454 Uncaught exceptionCaolán McNamara2015-10-174-126/+39
| | | | | | and a boatload more along that vein Change-Id: Ic7d458d3b8e5c99df1995251f75d3ad57d0df967
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1212-212/+212
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* loplugin:mergeclassesNoel Grandin2015-10-122-38/+20
| | | | Change-Id: I672d277a8d2dc6b57b299679e7e98348f9dbde30
* loplugin:mergeclassesNoel Grandin2015-10-122-46/+28
| | | | Change-Id: I31fe981dac14bd732ee68ee1a2e475dd1b0498a2
* clang-analyzer-deadcode.DeadStoresStephan Bergmann2015-10-071-1/+0
| | | | Change-Id: I22b423b99c87070ab1b8ce7f3eff928384951947
* loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann2015-08-313-26/+26
| | | | Change-Id: I3adb8d5664ecd8fafccc7bae0656f15100484422
* io: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe2015-08-1911-29/+27
| | | | | | | | | 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>
* Some oslCondition -> osl::ConditionStephan Bergmann2015-08-181-9/+7
| | | | Change-Id: Ib2c98db9ffd5871b6422c05f0230bbe27d1ba729
* loplugin: defaultparamsNoel Grandin2015-08-144-8/+4
| | | | Change-Id: I320eb6149793689c496b14090e8e0243397d01ba
* inline some use-once typedefsNoel Grandin2015-08-032-6/+2
| | | | | | | Change-Id: I55cc82c8e180cce371c996690608090b1bfdfda4 Reviewed-on: https://gerrit.libreoffice.org/17494 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Avoid loplugin:staticmethods in non-debug buildStephan Bergmann2015-07-081-0/+1
| | | | Change-Id: I205531a51f9d3e6611aafc5eb8fbd1ab49a517d8
* loplugin:unusedmethods bridges,ucbhelper,io,pyunoNoel Grandin2015-07-022-14/+0
| | | | | | | Change-Id: I483deb33b9d861af679d4a36e13585345401e10d Reviewed-on: https://gerrit.libreoffice.org/16681 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2015-06-089-14/+14
| | | | Change-Id: Ia282c33c70977e3c9e8f1c6fd86bee2fa6eca5c3
* loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann2015-06-021-1/+1
| | | | Change-Id: I61dc52779d3b873ba5429ddf53ba5be159b28ff2
* Clean up passing Boolean value to osl::Socket::setOptionStephan Bergmann2015-05-082-2/+2
| | | | Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-159-132/+132
| | | | | | | | | | | | | | | | 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
* Clean up template-parameter-dependent C-style castsStephan Bergmann2015-03-292-2/+2
| | | | Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-282-3/+3
| | | | Change-Id: I5f2240b6ac5210f185081bec891ad6d3f7901679
* Fix various XServiceInfo implementationsStephan Bergmann2015-03-171-1/+1
| | | | | | ...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
* enable tcpNoDelay for loopback connections automaticallyNoel Grandin2015-01-202-2/+8
| | | | | | | | | | 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>
* Some more loplugin:cstylecast: ioStephan Bergmann2015-01-203-33/+22
| | | | Change-Id: Iefd3268299b43ba08b9bc7699aa104288119ff4a
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-023-7/+7
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* io: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-161-2/+1
| | | | Change-Id: Ib05e759a1223d71e738940f6f9298ac593d94a27
* fdo#79941: Properly handle short readsStephan Bergmann2014-11-211-1/+1
| | | | Change-Id: Ie762ff272410d809382f98a1d446946b566df747
* cppu: clean up public headers with include-what-you-useMichael Stahl2014-11-183-0/+3
| | | | | | | | 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
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-172-0/+2
| | | | | | | | | 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
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-2912-12/+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-291-1/+1
| | | | Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
* set names on a bunch more threads...Michael Stahl2014-08-251-0/+1
| | | | Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
* various: remove SAL_THROW macroNoel Grandin2014-06-052-2/+2
| | | | Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
* fix . in #defineNoel Grandin2014-05-301-3/+3
| | | | | | | | as a consequence of commit 9e3cc6b47444f988a68ca3ddcad779ed0480b00c "fdo#68849: Add header guards to all include files" Change-Id: Ibabf0d88ff4d928311ad5079ac3aa1fd6a2c1e6d
* fdo#68849: Add header guards to all include filesJens Carl2014-05-303-2/+16
| | | | | | | | | 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>
* remove more unnecesary OUString constructor useNoel Grandin2014-05-293-21/+17
| | | | | | when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
* remove unnecessary use of Reference constructor in throwNoel Grandin2014-05-272-8/+8
| | | | | | | | | | | 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
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-235-22/+15
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* io: sal_Bool->boolNoel Grandin2014-04-2312-82/+82
| | | | Change-Id: I136c98cbe15d1c6629028392a9573066320b3a04
* Typo: s/shure/sureTor Lillqvist2014-04-181-1/+1
| | | | Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
* Explicitly mark overriding destructors as "virtual"Stephan Bergmann2014-04-017-11/+11
| | | | | | | | 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
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-2612-222/+222
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* coverity#707937 Uninitialized pointer fieldCaolán McNamara2014-03-121-1/+3
| | | | Change-Id: I25b92686b08137a5292de620d4e348019c21a739
* coverity#707936 Uninitialized pointer fieldCaolán McNamara2014-03-121-3/+8
| | | | Change-Id: I0ae177349408fd49832056fbc4c300e8e77b2417
* coverity#707939 Uninitialized scalar fieldCaolán McNamara2014-03-081-2/+3
| | | | Change-Id: I5cbb4e2fef4361085840c914e26bb494566a4600