summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming
AgeCommit message (Collapse)AuthorFilesLines
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann3-3/+3
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-07-09Implement XServiceInfo for com.sun.star.comp.MemoryStreamMatúš Kukan1-4/+23
Change-Id: Ie5499d2ac4aac67dc73fdc58958443b8060c4139
2016-07-09tdf#74608 Constructor function for MemoryStreamYeliz Taneroğlu1-24/+6
Change-Id: I5b0667c4c2808913cde686afa7315ef2319b4d49
2016-07-08loplugin:redundantcast: redundant static_casts in comphelperStephan Bergmann1-2/+2
Change-Id: I6112c3cc40383d00ea134bdc650e457f942e0dcf
2016-06-19loplugin:salbool: Implicit conversions from non-Boolean fundamental typesStephan Bergmann1-2/+2
Change-Id: I67eac95686678e6f5a2d60798535b2c65a9ba5d7
2016-04-08tdf#94306 replace boost::noncopyable in c...Jochen Nitschke2-6/+10
comphelper, connectivity and cppcanvas. Replace with C++11 delete copy-constructur and copy-assignment. Removed unused boost/noncopyable.hpp includes from some source files in cppcanvas. Change-Id: I90780820e21fbfd291ac10c266e7d16616e3a81b Reviewed-on: https://gerrit.libreoffice.org/23905 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-04-05tdf#74608 Constructor function for SequenceOutputStreamServiceYeliz Taneroğlu1-23/+5
Change-Id: I0f162bd0ec61262a182ebab8cea1cfe27419a54e Reviewed-on: https://gerrit.libreoffice.org/23610 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-05loplugin:constantparam in comphelperNoel Grandin2-36/+8
Change-Id: I81e6af1ee869caa3b40d2d00604e8e22517d92d7 Reviewed-on: https://gerrit.libreoffice.org/23808 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-29tdf#74608 Constructor function for SequenceInputStreamServiceSteven Guo1-24/+6
Added ctor funtion for SequenceInputStream(Service) in comphelper. Change-Id: I043e46aa283709f316e7ad794e15438f6b2d955f Reviewed-on: https://gerrit.libreoffice.org/23564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-02-09Remove excess newlinesChris Sherlock2-2/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin2-4/+2
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin1-2/+1
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-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: Ibd0e6ae5e3243464b2484a009f2b4781bdaac471
2015-10-30use uno::Reference::set method instead of assignmentNoel Grandin3-7/+7
Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann3-33/+33
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-07-27com::sun::star->css in comphelperNoel Grandin5-19/+19
Change-Id: I4aa0b2d15f2a06cbbbf63a363f403ca6435ffbcd Reviewed-on: https://gerrit.libreoffice.org/17365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-20tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe3-7/+7
with the variadic variants, for comphelper. This also includes extra changes in other modules required accordingly. Change-Id: Id1537f46f1c90f760a0d8987a6dafa0e1da03b8f Reviewed-on: https://gerrit.libreoffice.org/16929 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2-3/+3
Change-Id: I1ceb4359188b61e15a31750a496021c4394e1a3f
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-0/+3
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-23Revert recent changes to comphelper::OSequenceOutputStreamMatúš Kukan1-17/+17
Some of the changes could be wrong and we don't need them. This reverts commit 784d4bea86d8cbb3a855e557c465ce50a049cefc. This reverts commit 8524d5aba59148eef94859289f00ab6477e0e821. This reverts commit 018f1deae884febbbe639c7ee46b45ce4807e9d3. This reverts commit 8124fddc5803b4e104d4fc2456cb92cb030d9436. We use our own helper cache class in FastSaxSerializer since f736eba5a9df8645849a37b08d2764a5f495ab45. Change-Id: Iaca6b5b11cb32595db4420a02fa72b0007cf6286
2014-10-23FastSerializer: Avoid sequences where possibleMatúš Kukan1-9/+14
Change-Id: I359ca9d3b766b71904e4199ebfbdbd5b203775cc
2014-10-23FastSerializer: Do not keep whole sequence in memory; write in chunksMatúš Kukan1-0/+2
Change-Id: Ibca65a2b8397358ac4013c8e5b53389ac6949e4d
2014-10-23Remove mutex from OSequenceOutputStream; it's intended to be fastMatúš Kukan1-8/+1
Make the caller responsible for using it wisely. AFAICS it's used only in FastSaxSerializer, so far. Change-Id: I50d48fd7f3e6cdeb9e4637868da213b8171e542b
2014-08-21stario -> css::ioThomas Arnhold3-41/+41
Change-Id: Iad96e0a2bfd6c126c696f14919dbfd8e072dd230
2014-08-21starawt -> css::awtThomas Arnhold1-3/+3
Change-Id: I76dd16aa2c42a649162ea2e37c824af30cdd557b
2014-08-21comphelper: staruno -> css::unoThomas Arnhold3-43/+43
Change-Id: I21991280c5b7e4c6d0c200f4489c89a9f4fbc385
2014-07-29Include <algorithm> for std::minTor Lillqvist1-0/+1
Change-Id: If2bf31494f1354ff3856ad8b32f6799042e23b18
2014-05-27remove unnecessary use of Reference constructor in throwNoel Grandin2-4/+4
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-27remove unnecessary use of OUString constructor when throwingNoel Grandin1-2/+2
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-04-07Clean up function declarations and some unused functionsStephan Bergmann3-11/+11
Change-Id: I5817a5ad3966918cfb1920be568b7401dd6f948c
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin2-4/+4
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-03-29typo: enoungh -> enoughThomas Arnhold1-1/+1
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann3-33/+33
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-27Remove visual noise from comphelperAlexander Wilms1-4/+4
Change-Id: I7e5512b43240beee05404cff9d49a87d0217ea89 Reviewed-on: https://gerrit.libreoffice.org/8242 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann6-93/+93
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-23Remove unneccessary commentsAlexander Wilms5-54/+54
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-02-17comphelper: sal_Bool -> boolStephan Bergmann3-7/+7
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-17fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza2-12/+4
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-16Unwind useless comphelper::ByteSequence typedefStephan Bergmann1-1/+2
Change-Id: I59317a0d591eac188fa01636031e907357038c29
2013-06-29remove OUString wrap for string literalsThomas Arnhold1-2/+2
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>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák6-44/+43
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-01-31RTL_CONSTASCII_(U)STRINGPARAM removed in comphelperChr. Rossmanith3-15/+14
Change-Id: Ib068c06956bc9f04bb7c468375aacd2e6e9db77d
2012-10-24fdo#46808, convert comphelper::ConfigurationHelper to XComponentContextNoel Grandin1-7/+7
Convert the helper methods to take an XComponentContext parameter, instead of XMultiServiceFactory Change-Id: Id662d674c6d3c4ddfd35be5fc2e802b73bc6de90
2012-09-19ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann1-2/+2
...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-08-27fdo#46808, Adapt TempFile UNO service to new styleNoel Grandin1-14/+13
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-06-29re-base on ALv2 code.Michael Meeks6-138/+84
2012-06-25reduce static_initialization_and_destruction chainCaolán McNamara1-2/+1
Change-Id: I0c1b2f2d908c31d1510662880c13504d81445a6a
2012-06-21re-base on ALv2 code.Michael Meeks2-46/+28
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-02-25Remove unused codeElton Chung1-14/+0