summaryrefslogtreecommitdiff
path: root/basic/source/runtime
AgeCommit message (Collapse)Author
2014-03-27basic: sal_Bool->boolNoel Grandin
Change-Id: Id4952b6f97f9e8f917fea5651dee91499d109e48
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-25osl_setDetailedDebugMessageFunc is effectively doing nothingStephan Bergmann
...since the osl/diagnose.h macros got rebased onto sal/log.hxx, so remove the corresponding tools/debug.h functionality. Change-Id: Ife4b5b1a2608230d0dbfc3fa8852243c89ed292f
2014-03-25Avoid possible resource leaks by boost::scoped_arrayTakeshi Abe
Change-Id: I14e1f7ef217eb5e8e9db9f8962af868ab0a4ab81
2014-03-13basic: prefer passing OUString and OString by referenceNoel Grandin
Change-Id: I8121204cdb37d4e1d8967397f3e45bdab6aaddad
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-25Remove visual noise from basicAlexander Wilms
Change-Id: I10865b94f67de39e9dbcbe71ede42aa94d81db61 Reviewed-on: https://gerrit.libreoffice.org/8234 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25basic: remove use of sal_uIntptr in favor of more appropriate typeNorbert Thiebaud
Change-Id: Ie878f43c7245838519fe7477b039827b079dde63 Reviewed-on: https://gerrit.libreoffice.org/8214 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-23Remove unneccessary commentsAlexander Wilms
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-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert
Added vcl/settings.hxx to all cxx files which require it. This helps to speed up compilation after changes to the settings. Conflicts: sc/source/ui/dbgui/pvlaydlg.cxx Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4 Reviewed-on: https://gerrit.libreoffice.org/7933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12convert SvStream::operator>> methods to ReadXXX methodsNoel Grandin
First, I updated the clang rewriter to do the conversion. Then I lightly hand-tweaked the output for the few places where the rewriter messed up, mostly when dealing with calls on "this". Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9 Reviewed-on: https://gerrit.libreoffice.org/7879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-04Related: #i123862# use O*String's isEmpty() method...Herbert Dürr
to check for emptiness in modules starting with 'b' Patch-by: j.nitschke@ok.de Review-by: hdu@apache.org (cherry picked from commit 87204b0f4062ef8fc8f138ad15f4378da609d4e2) Conflicts: basctl/source/basicide/baside2.cxx basctl/source/basicide/bastype2.cxx basctl/source/basicide/localizationmgr.cxx basctl/source/dlged/dlgedobj.cxx basic/source/basmgr/basmgr.cxx basic/source/basmgr/vbahelper.cxx basic/source/classes/sbunoobj.cxx basic/source/comp/sbcomp.cxx basic/source/runtime/iosys.cxx basic/source/runtime/methods.cxx basic/source/runtime/methods1.cxx basic/source/runtime/step2.cxx basic/source/uno/namecont.cxx basic/source/uno/scriptcont.cxx binaryurp/source/bridge.cxx binaryurp/source/bridgefactory.cxx binaryurp/source/reader.cxx binaryurp/source/unmarshal.cxx bridges/source/cpp_uno/cc50_solaris_intel/except.cxx bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx bridges/source/cpp_uno/shared/vtablefactory.cxx bridges/source/jni_uno/jni_data.cxx Change-Id: I37bd84e0a1d6426759dba81854faf32c88147fe1
2014-02-03some more continuous correctionsThomas Arnhold
2014-01-28bool improvementsStephan Bergmann
Change-Id: I571354540f1ab108c55d32c20786d34a799c3bed
2014-01-27coverity#707652 Uninitialized scalar fieldCaolán McNamara
Change-Id: I6d561955454b0619255296704812b41a10ffe962
2014-01-27coverity#707651 Uninitialized scalar fieldCaolán McNamara
Change-Id: I6e497d60e72efd1df6c271ce6bf8d5e46ba09ea7
2014-01-22convert more SvStream::operator<< callsNoel Grandin
.. to more explicit SvStream::Write* calls This was done using another run of the clang rewriter, and then a lot of hand tweaking to fix all the places where the rewriter did not play nice with various macros. Change-Id: I7bcab93851c8dfb59cde6bc76290c6484d88fb18 Reviewed-on: https://gerrit.libreoffice.org/7494 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-21Resolves: fdo#73771 Non-standard behaviour for Function MidJulien Nabet
Change-Id: I90be516235228574dc219447a0eef3a34f83bee2 Reviewed-on: https://gerrit.libreoffice.org/7539 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17fdo#73698 check for empty aOutAndras Timar
Change-Id: I0da26ef746553618bd8aee69f21ff0d1261efbf6 Reviewed-on: https://gerrit.libreoffice.org/7474 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-01-16Environment variables can contain >127 charactersAndras Timar
Change-Id: Iaeb690429d835ab2e6c13a8890a1b27b9405796a
2014-01-16convert SvStream::operator<< overloads to more explicit methodsNoel Grandin
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-14bool improvementsStephan Bergmann
Change-Id: Ic9ea40c430e0b0ab0d46bac3ba150ddac96c6acc
2014-01-10re-write SvStream operator<< to non-overloaded methodsNoel Grandin
This is the actual re-write. Use a clang rewriter to rewrite SvStream::operator<< to methods like WriteuInt32. Note that the rewriter is not perfect, and I hand-tweaked the output. In particular, I had to adjust places doing things like (*this) << 1; Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a Reviewed-on: https://gerrit.libreoffice.org/7342 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-12-11sbstdobj.hxx is private to basicTor Lillqvist
Change-Id: I131dfeded783edfea94208d1cf8d70a2090785fa
2013-12-11sbobjmod.hxx is private to basicTor Lillqvist
Change-Id: I4ad28b049de5f7268ee1ca2e8992e2f29ed05380
2013-12-02Resolves: #i74854# fix buttons in MsgBox with info iconHerbert Dürr
Patch by: hanya.runo@gmail.com Found by: ooo@catcons.co.uk Tested by: hdu@apache.org (cherry picked from commit 02cc651a1b45cbfbdab0aca6b57bff7bdf9e4f2c) Conflicts: basic/source/runtime/methods.cxx vcl/inc/vcl/msgbox.hxx Change-Id: I1656263e189f1a6cfa58436741bfa74ae0e6fffa
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-11basic: include <> for external includesNorbert Thiebaud
Change-Id: I4715bbe853d60ef15f20a4d2441c688003ca568e
2013-11-11remove unnecessary use of OUString constructor in BASIC moduleNoel Grandin
Change-Id: Iee86ce9200285647d5031cb2f89266a52704dd44
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-28fixincludeguards.sh: basicThomas Arnhold
Change-Id: Id797a8969e42876092da347d8e1bba6195b697dc
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22Resolves: fdo#38838 remove UniStringCaolán McNamara
hammer silver nails into coffin and bury in concrete Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
2013-10-21fdo#68849 add some header guardsThomas Arnhold
Change-Id: I9d25a58f22095689eccc0ac444c163d1e9bee69f Reviewed-on: https://gerrit.libreoffice.org/6364 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-10-15Defer OUString -> OString conversionStephan Bergmann
...to avoid converting back OString -> OUString in SbiIoSystem::WriteCon. Change-Id: I17024891d0babaa589f2c65f1123f1905c4338bb
2013-10-12Test WNT instead of the vague UNXTor Lillqvist
Change-Id: Icacdae592f05bcdcf50223d607976d687e182c96
2013-10-11CID#1103740 uninitialized valueCaolán McNamara
Change-Id: I2d10104277d8ad0781e3dd088d51d62fa759fe57
2013-10-03unused StringHashCodeCaolán McNamara
Change-Id: I72b882292f62c4a2b4999fa3e553db3c617e03f4
2013-09-17convert BASIC from String to OUStringNoel Grandin
Change-Id: I4b046e4c460305acad29862341092af948639215
2013-09-12CID#707499 check for 0 nDimsCaolán McNamara
Change-Id: I828339695db1b1880d7e884f8bf26911d04b8508
2013-09-11Easier conversion between Basic Date and UNO Date/TimeLionel Elie Mamane
Utility functions to convert between Basic Date type and the representations of Date and Time in UNO, namely: - com.sun.star.util.Date - com.sun.star.util.Time - com.sun.star.util.DateTime Name of new functions: - CDateToUnoDate - CDateFromUnoDate - CDateToUnoTime - CDateFromUnoTime - CDateToUnoDateTime - CDateFromUnoDateTime Change-Id: I2b971df20df1c0351d071023e042169b548894f1 Reviewed-on: https://gerrit.libreoffice.org/5897 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-09-04WaE: use number() instead of valueOf()Tor Lillqvist
Change-Id: Ic45dc030f76531d202a12e227130d11d3d1de805
2013-09-02fix runtime error when using extended typesNoel Power
note: using VBA objects with the code completion is not possible at the moment. Unfortunately there is some hard coded hacks for flattening the namespace used by checkUnoObject. Change-Id: Ic3a3149f41a6959943e71fa7ac22ff4dab7f30a1
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-07-29Basic: make sure a messagebox has solarmutexLionel Elie Mamane
Change-Id: Icc5f05456e4031ffbc88d6128689465f08eb5f0d
2013-07-10drop intermediate stringsCaolán McNamara
Change-Id: Ib4a2bf25fcb834bda1bc515152b01c292704893a
2013-07-05fixup nanosecond precisionLionel Elie Mamane
This was broken before... Time used to take centiseconds, so the nanoseconds should have been *divided* by 10^7 for conversion. Now Time takes straight nanoseconds, so no conversion necessary. Change-Id: Ibac3eeca7020c5d8c5ff4be3e7617fac26ee8180
2013-07-02OUString convertion for unotoolsNorbert Thiebaud
Change-Id: Ifae7f344e3827875e32afa3cda23c771f5735707 Reviewed-on: https://gerrit.libreoffice.org/4659 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-13Resolves: #i121504# Support for alpha channel in clipboard for all systemsArmin Le Grand
(cherry picked from commit ef3931ff410117e1237b3bef7bc090e8b83b9519) Conflicts: automation/source/server/statemnt.cxx basic/source/runtime/methods.cxx canvas/source/vcl/devicehelper.cxx canvas/source/vcl/spritedevicehelper.cxx drawinglayer/source/processor2d/vclhelperbufferdevice.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx drawinglayer/source/tools/converters.cxx dtrans/source/win32/dtobj/FmtFilter.cxx editeng/source/items/bulitem.cxx extensions/source/scanner/sanedlg.cxx external/gcc3_specific/makefile.mk filter/source/graphicfilter/eos2met/eos2met.cxx filter/source/graphicfilter/ios2met/ios2met.cxx filter/source/msfilter/msdffimp.cxx fpicker/source/office/iodlg.cxx framework/source/fwe/classes/addonsoptions.cxx framework/source/fwe/helper/actiontriggerhelper.cxx sc/source/filter/excel/xiescher.cxx sc/source/ui/docshell/docsh.cxx sc/source/ui/inc/viewfunc.hxx sd/source/ui/app/sdxfer.cxx sd/source/ui/unoidl/unopage.cxx sd/source/ui/view/sdview3.cxx sfx2/source/appl/fileobj.cxx sfx2/source/appl/linkmgr2.cxx sfx2/source/dialog/filedlghelper.cxx sfx2/source/dialog/intro.cxx sfx2/source/doc/docinf.cxx sot/inc/sot/formats.hxx sot/source/base/formats.cxx svtools/bmpmaker/bmpcore.cxx svtools/bmpmaker/bmpsum.cxx svtools/inc/svtools/transfer.hxx svtools/source/filter/filter.cxx svtools/source/filter/wmf/emfwr.cxx svtools/source/filter/wmf/enhwmf.cxx svtools/source/filter/wmf/winwmf.cxx svtools/source/filter/wmf/wmfwr.cxx svtools/source/graphic/graphic.cxx svtools/source/graphic/provider.cxx svtools/source/misc/transfer.cxx svx/inc/svx/xoutbmp.hxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx svx/source/xoutdev/_xoutbmp.cxx sw/source/core/view/viewsh.cxx sw/source/filter/ww1/w1filter.cxx sw/source/filter/ww8/ww8par.hxx sw/source/ui/dochdl/swdtflvr.cxx toolkit/source/awt/vclxbitmap.cxx toolkit/source/helper/vclunohelper.cxx vcl/Library_vcl.mk vcl/Package_inc.mk vcl/aqua/source/dtrans/DataFlavorMapping.cxx vcl/aqua/source/dtrans/OSXTransferable.cxx vcl/aqua/source/dtrans/PictToBmpFlt.cxx vcl/aqua/source/dtrans/PictToBmpFlt.hxx vcl/inc/vcl/alpha.hxx vcl/inc/vcl/bitmap.hxx vcl/inc/vcl/bitmapex.hxx vcl/inc/vcl/pngwrite.hxx vcl/inc/vcl/salbtype.hxx vcl/inc/vcl/wall.hxx vcl/source/gdi/animate.cxx vcl/source/gdi/bitmap2.cxx vcl/source/gdi/bitmapex.cxx vcl/source/gdi/bmpconv.cxx vcl/source/gdi/cvtsvm.cxx vcl/source/gdi/impgraph.cxx vcl/source/gdi/impimagetree.cxx vcl/source/gdi/metaact.cxx vcl/source/gdi/wall.cxx Change-Id: I79938bc412c048c3d4e64f430f216e73bec16167
2013-06-13blind ( windows ) fix re. uno::Refererence vs rtl::Reference foobar fdo#65545Noel Power
Change-Id: I81b877e8e1b6945c2f1265947ad915ed1070800a