summaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Collapse)AuthorFilesLines
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
2014-06-02fdo#68849: Add header guards to all include filesJens Carl1-0/+6
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 Grandin1-3/+3
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 Carl3-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>
2014-05-29remove more unnecesary OUString constructor useNoel Grandin3-21/+17
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-27remove unnecessary use of Reference constructor in throwNoel Grandin2-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
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet1-4/+4
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin5-22/+15
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-04-23io: sal_Bool->boolNoel Grandin12-82/+82
Change-Id: I136c98cbe15d1c6629028392a9573066320b3a04
2014-04-22second test should be DataOutputStreamStephan Bergmann1-1/+1
...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 Lillqvist1-1/+1
Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann7-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
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann12-222/+222
...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 McNamara1-1/+3
Change-Id: I25b92686b08137a5292de620d4e348019c21a739
2014-03-12coverity#707936 Uninitialized pointer fieldCaolán McNamara1-3/+8
Change-Id: I0ae177349408fd49832056fbc4c300e8e77b2417
2014-03-08coverity#707939 Uninitialized scalar fieldCaolán McNamara1-2/+3
Change-Id: I5cbb4e2fef4361085840c914e26bb494566a4600
2014-03-08coverity#707938 Uninitialized scalar fieldCaolán McNamara1-3/+3
Change-Id: Ic76e70a33ed33a94e06faf0168e9a740c736a19e
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann13-396/+396
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from ioAlexander Wilms4-12/+11
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 Wilms5-17/+17
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 Bergmann1-1/+1
Change-Id: Ia6f86e38cb46a5f7ac634ad0afb66701811e6758
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann1-2/+2
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-09fdo#54938: Convert io to use cppu::supportsServiceMarcos Paulo de Souza3-46/+7
Change-Id: Id53289a68352558b039e0993b687d0447cea8036 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-3/+2
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-2/+2
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-18/+18
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11remove unnecessary use of OUString constructorNoel Grandin3-29/+25
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-05fdo#60698: Merge all libs of io...Marcos Paulo de Souza24-481/+268
creating the libio. All these libraries are always used together, so we can put them together in one single library. This save almost 500 kb of the size of the final library. Change-Id: Ib32fec36cc4eb80ca646ce472c1f1bcdd98ac62b Reviewed-on: https://gerrit.libreoffice.org/6567 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin1-1/+1
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist4-4/+4
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22Resolves: #i75731# check output stream and...Jürgen Schmidt1-0/+15
throw IOExceptioin if it is not intialized (cherry picked from commit cf17f922f01bd75643749a7fd01a03f8167bccee) Change-Id: I07f6def513ef54b736689bf22565645f0c313982
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza5-70/+13
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-04fdo#46374 replace stardiv in comments where applicableThomas Arnhold2-14/+8
Change-Id: Icd07fba84735325408741ad10864c63ea32a6481
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák5-5/+5
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-12Mark as constTakeshi Abe5-5/+5
Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502