summaryrefslogtreecommitdiffstats
path: root/io
Commit message (Collapse)AuthorAgeFilesLines
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-2919-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>
* 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
* fdo#68849: Add header guards to all include filesJens Carl2014-06-021-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>
* 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
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2014-05-231-4/+4
| | | | Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
* 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
* second test should be DataOutputStreamStephan Bergmann2014-04-221-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
* 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
* coverity#707938 Uninitialized scalar fieldCaolán McNamara2014-03-081-3/+3
| | | | Change-Id: Ic76e70a33ed33a94e06faf0168e9a740c736a19e
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-2613-396/+396
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove visual noise from ioAlexander Wilms2014-02-264-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>
* Remove unneccessary commentsAlexander Wilms2014-02-235-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>
* bool improvementsStephan Bergmann2014-01-211-1/+1
| | | | Change-Id: Ia6f86e38cb46a5f7ac634ad0afb66701811e6758
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-171-2/+2
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* fdo#54938: Convert io to use cppu::supportsServiceMarcos Paulo de Souza2013-12-093-46/+7
| | | | | Change-Id: Id53289a68352558b039e0993b687d0447cea8036 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* remove unnecessary use of OUString constructor when assigningNoel Grandin2013-11-191-3/+2
| | | | | | | | | change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
* remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin2013-11-191-2/+2
| | | | | | This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
* convert OUString 0==compareToAscii to equalsAsciiNoel Grandin2013-11-111-18/+18
| | | | | | | | | | Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
* remove unnecessary use of OUString constructorNoel Grandin2013-11-113-29/+25
| | | | Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
* fdo#60698: Merge all libs of io...Marcos Paulo de Souza2013-11-0524-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>
* remove redundant calls to OUString constructor in if expressionNoel Grandin2013-11-041-1/+1
| | | | | | | | | Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
* Bin comments that claim to say why some header is includedTor Lillqvist2013-10-224-4/+4
| | | | | | They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
* Resolves: #i75731# check output stream and...Jürgen Schmidt2013-10-221-0/+15
| | | | | | | | throw IOExceptioin if it is not intialized (cherry picked from commit cf17f922f01bd75643749a7fd01a03f8167bccee) Change-Id: I07f6def513ef54b736689bf22565645f0c313982
* fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza2013-10-225-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>
* fdo#46374 replace stardiv in comments where applicableThomas Arnhold2013-10-042-14/+8
| | | | Change-Id: Icd07fba84735325408741ad10864c63ea32a6481
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-215-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
* Mark as constTakeshi Abe2013-08-125-5/+5
| | | | Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
* Fix memory leak in OTextInputStream.Mark Wielaard2013-07-011-0/+3
| | | | | | | | | Delete mpBuffer when done in destructor or replaced in implResizeBuffer. Change-Id: Ide1b44f10a482ce9bb6135fb879e62e0a8ccea29 Reviewed-on: https://gerrit.libreoffice.org/4637 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* remove OUString wrap for string literalsThomas Arnhold2013-06-293-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2013-05-061-2/+2
| | | | | | | Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-226-132/+24
|
* Remove any remaining remnants of unused component_canUnload featureStephan Bergmann2013-04-195-37/+15
| | | | Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
* remove unused component_canUnload functionsMatúš Kukan2013-04-1916-97/+5
| | | | Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
* fix loplugin unused warningsPeter Foley2013-03-301-15/+6
| | | | Change-Id: I23fc6bf62e74f192f77c74ed48d5276737375f3c
* further OUString cleanupThomas Arnhold2013-03-193-3/+3
| | | | Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
* automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold2013-03-192-20/+20
| | | | | | | | | | | Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* remove legacy build.pl prj/build.lst files.Michael Meeks2013-03-141-3/+0
|
* sal_Bool to boolTakeshi Abe2013-03-044-6/+6
| | | | Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
* remove all d.lstMichael Stahl2013-02-281-0/+0
| | | | Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885