summaryrefslogtreecommitdiff
path: root/unotools/source/ucbhelper
AgeCommit message (Collapse)AuthorFilesLines
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl1-0/+1
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-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava1-1/+1
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-11unotools: assert if TempFile::GetURL() fails due to missing file UCPMichael Stahl1-3/+3
Change-Id: I3dd844c656766835079bc191b3b55d3fba2c2219
2014-10-11move the removeTree function from desktop to unotoolsMichael Stahl1-0/+51
Change-Id: I98d3f4a68abfee42dac987633878b850134671d3
2014-10-01fdo#82577: Handle TimeNoel Grandin2-2/+2
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-25set names on a bunch more threads...Michael Stahl1-0/+2
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-06-27tweak assert so comment appears in abort messageCaolán McNamara1-10/+10
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
2014-06-05various: remove SAL_THROW macroNoel Grandin1-1/+0
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-04compareToAscii -> equalsAsciiNoel Grandin1-3/+3
convert places using compareToAscii that should be using equalsAscii Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet1-1/+1
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-20fdo#60338: Introduce osl_createDirectoryWithFlagsStephan Bergmann1-1/+4
...so that utl::TempFile can pass osl_File_OpenFlag_Private and doesn't have to resort to umask (the calls to umask around Directory::create had somewhat erroneously been removed recently with 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 "Related fdo#60338: Create missing temp file dir with user's original umask," mistaking this for creation of intermediate directories in the hierarchy). On Windows, the flags argument to osl_createDirectoryWithFlags is ignored completely for now. Change-Id: Iac56a5049d579be729a3f338aa62105123edb6cb
2014-05-20enhance pass-by-ref plugin to detect large argumentsNoel Grandin1-1/+1
Detect arguments larger than 64 chars passed by value. Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-19fdo#60338: Add osl_File_OpenFlag_Private to avoid umaskStephan Bergmann1-8/+4
Change-Id: I293295244d1b089d747548c5025cb73b8ec428a4
2014-05-19Abstract over Tokens algorithmStephan Bergmann1-100/+73
Change-Id: I16347d52dd7c102c7bf6a8fd2926e61e6cf75c0b
2014-05-16For now, reintroduce the horrible static counter into utl::TempFileStephan Bergmann1-2/+80
...i.e., bug fdo#41295 and its fix rediscovered. Change-Id: If958fad74c853f51660a9e0bfffd99969052ea80
2014-05-16Consolidate CreateTempName_Impl and lcl_createName more faithfullyStephan Bergmann1-10/+11
This is a follow-up to fcf455d4efde077bb2b092b607de12ebfc350275 "Consolidate CreateTempName_Impl and lcl_createName," which apparently lead to hard-to- diagnose sporadic "make check" failures on some machines. Hope is that bLock now more carefully tracking the behavior of the original two functions fixes that. Change-Id: I37ba00545f5921fd603ff9f1ea46927c42e88899
2014-05-14Unify utl::TempFile ctorsStephan Bergmann1-7/+0
Change-Id: I0a781a86804808cebf7756506d9299971c13e2ff
2014-05-13Consolidate CreateTempName_Impl and lcl_createNameStephan Bergmann1-89/+37
Change-Id: I4dbb917a6d9343f797859a2f24fa1d92b26a51eb
2014-05-13Remove nonsensical codeStephan Bergmann1-2/+0
...introduced with 2d8c990f8790be43cf4dda4bc871a917b9dcc974 "INTEGRATION: CWS reportdesign01: #i79214# new method to allow to start not with zero." Change-Id: Id141b2913ceb47c0c54f4449bdcdf5130c6f355b
2014-05-13Elide utl::TempFile_ImplStephan Bergmann1-52/+33
Change-Id: I8f14cd351c17abaa9d48144cdf8325afc250787b
2014-05-13utl::TempFile::CreateTempName pParent is unusedStephan Bergmann1-2/+2
Change-Id: Ide12ea21104af678dc541ed0e83970e7a2f5e694
2014-05-13Related fdo#60338: Create missing temp file dir with user's original umaskStephan Bergmann1-6/+0
For one, that is consistent with how ensuredir (in the same .cxx) has always worked, and for another saves us from trouble with umask, cf. 034d4c111976f337877e5954c6cc95ed9f90a343 "Related fdo#60338: Setting umask for osl::Directory::open is useless." Change-Id: Ic3fb5bb29ca3031d257067a514cb9f5bccfbfe4f
2014-05-13Related fdo#60338: Setting umask for osl::Directory::open is uselessStephan Bergmann1-7/+0
Maybe 39c58e416252571a04b8ebbb56c9fa012b117993 "INTEGRATION: CWS olefix: #i46469# use correct umask on unix" had intended to put it around the osl::Directory::create call instead, but given the trouble of calling umask(3) in a MT program at all, it is probably better to keep creating any missing directories with the user's original umask anyway. Change-Id: Idfddfdab05373a3c395daba635fddcc054f3f215
2014-05-11fix-includes.pl: unotoolsThomas Arnhold3-39/+39
Change-Id: I1b2b8d58cec548961fb06f2595fd474010ae9979
2014-05-06Fix indentationTor Lillqvist1-6/+6
Change-Id: If94971484109fb63d2e20af77d023e6552a02ba8
2014-04-30coverity#1209935 Uncaught exceptionCaolán McNamara1-8/+14
and hopefully a million more Change-Id: Ib1326cae3ec93855b311a8cf4e9e6f9def199d44
2014-04-11replace some SvStream seeking with calls to remainingSize()Michael Stahl1-8/+2
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-06Kill superfluous spacing before semicolonsTor Lillqvist2-4/+4
Change-Id: I2d8b430e1a6c23569eb0a67a2dcf8702cf7abc41
2014-04-06Kill superfluous vertical whitespaceTor Lillqvist4-66/+0
Change-Id: I949ba575951998d36cb4d38746f2182633046b3b
2014-04-05coverity#708566 Uninitialized scalar fieldCaolán McNamara1-3/+5
Change-Id: I4a9c3faa194ae0885dc27571cc14c4c8cee8cb0f
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin1-3/+3
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann1-5/+5
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-04-01Remove unused inline functionStephan Bergmann1-3/+0
Change-Id: I5601a1d6d37f5d30d50bbe22e1079d8c6acf2c4b
2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud1-2/+12
unottols TempFile class check in debug bod for and env variable LO_TESTNAME.. if present it use that as the root for the tempfile filename. cppunitteset framework is augmented so that it export such LO_TESNAME using the cppunit testName(), after replacement of non-alphnum characters by _ Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-29tools: support 64-bit file positions in SvStreamMichael Stahl1-1/+1
Bump stream positions to 64 bits on: SvLockBytes::SetSize() SvStream::SeekPos() SvStream::SetSize() SvStream::SetStreamSize() SvStream::Seek() SvStream::SeekRel() SvStream::Tell() SvStream::remainingSize() SvStream::nActPos SvStream::nBufFilePos Change-Id: I0521fd60d31d1a33e5634cbf51dd42edc46ad919 TODO: adapt callers of Seek()/SeekRel()/Tell()/remainingSize()
2014-03-29tools: allow 64-bit positions on SvLockBytesMichael Stahl1-2/+4
Bump stream positions to 64 bits on: SvLockBytes::ReadAt() SvLockBytes::WriteAt() SvAsyncLockBytes::m_nSize SvOpenLockBytes::Seek() SvOpenLockBytes::Tell() SvOutputStreamOpenLockBytes::m_nPosition OInputStreamHelper::m_nActPos Change-Id: Ica3b674e0ab23a756260a51475e97a5396ecdddb
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2-57/+57
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann4-85/+85
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from unotoolsAlexander Wilms1-1/+1
Change-Id: I1285c4e47ad381934adc3aea6671e7c95d820c39 Reviewed-on: https://gerrit.libreoffice.org/8334 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms1-11/+11
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-19unotools: sal_Bool -> boolStephan Bergmann5-26/+26
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-03fdo#54938 Convert to cppu::supportsServiceAlexandre Vicenzi1-4/+5
Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10 Reviewed-on: https://gerrit.libreoffice.org/7649 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-28bool improvementsStephan Bergmann2-3/+3
Change-Id: I7020537797b181b0fcbf78de3d7b962b96744895
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin1-1/+1
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-1/+1
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-1/+1
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-07remove unnecessary use of OUString constructor in UNOTOOLS moduleNoel Grandin2-4/+4
Change-Id: Iad166e6b9ce0877200bd58c388b3914b15167196
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin1-3/+3
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-10-28fixincludeguards.sh: unotoolsThomas Arnhold1-2/+2
Change-Id: Idf4bee8c51e3082d2b815d9cf5c3d7374e598622
2013-10-23convert code to use OUString::endsWithNoel Grandin1-7/+6
Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6