summaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Collapse)AuthorFilesLines
2015-11-24cppcheck: noExplicitConstructorCaolán McNamara11-16/+16
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin2-9/+3
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-2/+1
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin6-20/+10
performed using: 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: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin3-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>
2015-11-10Replaced for_each and algorithm include by range based loop and exception.Mario J. Rugiero2-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>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann8-27/+27
Change-Id: I04ceb5b1514a1d0bf123a1cded5e1aac3e8dde2f
2015-11-09new loplugin: oncevarNoel Grandin1-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>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann1-5/+5
Change-Id: Ifcfb6792138802f4150ccb966927818fbd3f64e3
2015-11-04use uno::Reference::set method instead of assignmentNoel Grandin7-18/+17
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
2015-11-03Fix create/destroy mismatchStephan Bergmann1-2/+2
Change-Id: Ibff6caedae0c5ed84cf4864c7a52af56a7cea527
2015-11-01no need to use OUString constructor in call to createInstanceNoel Grandin1-2/+1
Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296 Reviewed-on: https://gerrit.libreoffice.org/19704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin4-16/+14
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-23com::sun::star->css in ioNoel Grandin9-125/+125
Change-Id: I4a0cd4b29db91584c23148d659846c71b90b0d65
2015-10-17coverity#1327454 Uncaught exceptionCaolán McNamara4-126/+39
and a boatload more along that vein Change-Id: Ic7d458d3b8e5c99df1995251f75d3ad57d0df967
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann13-217/+217
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12loplugin:mergeclassesNoel Grandin2-38/+20
Change-Id: I672d277a8d2dc6b57b299679e7e98348f9dbde30
2015-10-12loplugin:mergeclassesNoel Grandin2-46/+28
Change-Id: I31fe981dac14bd732ee68ee1a2e475dd1b0498a2
2015-10-07clang-analyzer-deadcode.DeadStoresStephan Bergmann1-1/+0
Change-Id: I22b423b99c87070ab1b8ce7f3eff928384951947
2015-09-30Fix typosAndrea Gelmini1-2/+2
Change-Id: I44bdb63bef76e9686e995661a24a3bef7cd50ab7 Reviewed-on: https://gerrit.libreoffice.org/18959 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann3-26/+26
Change-Id: I3adb8d5664ecd8fafccc7bae0656f15100484422
2015-08-19io: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe16-45/+40
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 Bergmann1-9/+7
Change-Id: Ib2c98db9ffd5871b6422c05f0230bbe27d1ba729
2015-08-14loplugin: defaultparamsNoel Grandin4-8/+4
Change-Id: I320eb6149793689c496b14090e8e0243397d01ba
2015-08-03inline some use-once typedefsNoel Grandin2-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>
2015-07-27inline a bunch of use-once macrosNoel Grandin1-8/+0
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 Bergmann1-0/+1
Change-Id: I205531a51f9d3e6611aafc5eb8fbd1ab49a517d8
2015-07-02loplugin:unusedmethods bridges,ucbhelper,io,pyunoNoel Grandin2-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>
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann9-14/+14
Change-Id: Ia282c33c70977e3c9e8f1c6fd86bee2fa6eca5c3
2015-06-02loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann1-1/+1
Change-Id: I61dc52779d3b873ba5429ddf53ba5be159b28ff2
2015-05-08Clean up passing Boolean value to osl::Socket::setOptionStephan Bergmann2-2/+2
Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin14-187/+187
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 Bergmann1-2/+2
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann1-6/+6
Change-Id: I736518e38a9badf9ee24564952a135bd5019d110
2015-03-29Clean up template-parameter-dependent C-style castsStephan Bergmann2-2/+2
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann2-3/+3
Change-Id: I5f2240b6ac5210f185081bec891ad6d3f7901679
2015-03-17Fix various XServiceInfo implementationsStephan Bergmann1-1/+1
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-01-20enable tcpNoDelay for loopback connections automaticallyNoel Grandin2-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>
2015-01-20Some more loplugin:cstylecast: ioStephan Bergmann3-33/+22
Change-Id: Iefd3268299b43ba08b9bc7699aa104288119ff4a
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara3-7/+7
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-16io: Use appropriate OUString functions on string constantsStephan Bergmann1-2/+1
Change-Id: Ib05e759a1223d71e738940f6f9298ac593d94a27
2014-11-26Fix C4716: 'anonymous namespace'::Input::readBytes : must return a valueTor Lillqvist1-1/+1
Change-Id: I1d660da4cdd3f612ac1478e37e613446d4253fae
2014-11-24Unit test for fdo#79941 (handle short reads)Stephan Bergmann3-0/+179
...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 Bergmann1-1/+1
Change-Id: Ie762ff272410d809382f98a1d446946b566df747
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl3-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
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-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
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin19-19/+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>
2014-09-29loplugin: cstylecastNoel Grandin1-1/+1
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-08-25set names on a bunch more threads...Michael Stahl1-0/+1
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-06-05various: remove SAL_THROW macroNoel Grandin2-2/+2
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494