summaryrefslogtreecommitdiff
path: root/basic
AgeCommit message (Collapse)AuthorFilesLines
2014-04-19fixincludeguards.sh: basicThomas Arnhold2-4/+4
2014-04-17remove executable bitAndras Timar2-0/+0
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-15whitespace for include statementsThomas Arnhold1-10/+10
Change-Id: I76bd0ef07a2fa134e948724cecdf539ffe6ccb8a
2014-04-14typo: beause -> becauseThomas Arnhold1-1/+1
2014-04-14typo: paramter -> parameterThomas Arnhold1-1/+1
2014-04-14typo: implicitely -> implicitlyThomas Arnhold1-1/+1
2014-04-14remove _old_format_code_Thomas Arnhold1-91/+0
2014-04-09Clean up function declarations and some unused functionsStephan Bergmann19-47/+98
Change-Id: I63c4c61847fea4500b667a5ea9f2b32207692033
2014-04-07basic: sal_Bool->boolNoel Grandin27-328/+329
Change-Id: I1c084ca86c0b1308eb2fc1451ba34d2e702c6a7f
2014-04-07Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann3-7/+7
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
2014-04-04StarBASIC::ErrorHdl sal_Bool->boolNoel Grandin1-3/+2
Change-Id: I68cc6c6b63174ff16e5fda00f62172e1eaacbf0d
2014-04-04SbxObject::Call sal_Bool->boolNoel Grandin2-5/+5
Change-Id: I2e52ddf704679a118fbbc4efebb7cf9fb36f0c34
2014-04-04SbxObject::isClass sal_Bool->boolNoel Grandin3-6/+6
Change-Id: I71f7b3603df43924d7374969444b929e1eecca4e
2014-04-04coverity#706238 Uncaught exceptionCaolán McNamara2-2/+4
Change-Id: I10bd34115be12dc752987ddbe5d93862aa072e72
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin5-12/+12
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann10-15/+15
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-31Remove unused BASIC CaptureAssertions functionalityStephan Bergmann6-164/+0
...that had originally been introduced to catch DBG_ASSERTs during smoketest, but since made effectively unused when basing DBG_ASSERT on the sal/log.hxx functionality, and obsoleted by the ongoing clean-up of using true assert where appliable. Change-Id: I2fb4f5d0873d29595b178057f83c1404c0085575
2014-03-30MSVC helpfully provides warning C4310: cast truncates constant valueMichael Stahl1-1/+1
Change-Id: I985216d7bade6cbb3a037b07fe44438543d63ba0
2014-03-30deploy some asserts to detect truncated STREAM_SEEK_TO_ENDMichael Stahl1-0/+2
Since STREAM_SEEK_TO_END is now 64 bits it could happen that some existing code uses it in some indirect manner and it gets truncated to 32 bits somewhere (on 32 bit platforms); try to detect that with asserts. Of course the checked value is now a valid stream position, so perhaps the checks should eventually be removed. Change-Id: I4248c00d758220bdc3ee94c7aa7a7bd4c86c57f0
2014-03-29error: no matching function for call to..Matúš Kukan1-2/+2
Change-Id: I4792f9deb162c5e7bde16e54a55f80a83eb90b70
2014-03-29basic: for PutData()/GetData() actually 32bits should be enoughMichael Stahl1-10/+10
Change-Id: I3c605a1e5b46d262ff557dac280b15136467b906
2014-03-28fdo#75280 Started cleaning up of sal_uIntPtr usage.Valentin Kettner12-51/+42
Converted wrong usage of sal_uIntPtr to appropriate other types in basic module. The bug is not fully fixed with this since many other occurences of sal_uIntPtr remain. Update due to code review comments: Fixed forgetting to change some declarations in iosys.cxx. Cleaned up the one remaining sal_uIntPtr in iosys.cxx Fixed adding a sal_uInt64 to a Date (uses long now instead) in methods.cxx Fixed the VarDecFromUI4 call in sbxdec.cxx from sal_uLong to ULONG . Conflicts: basic/source/runtime/iosys.cxx Change-Id: Ia6460be04967deb68b92eb62d945da8814fae605
2014-03-28Remove remaining DBG_CTOR etc. remnants from basicStephan Bergmann4-87/+0
Change-Id: Ia714029c2e32e28c1bb6f4f59d0c7f357eccc236
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann15-168/+168
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27basic: sal_Bool->boolNoel Grandin3-71/+71
Change-Id: Icd78d21495f305c8f00280eee76e7262e542317d
2014-03-27basic: sal_Bool->boolNoel Grandin19-292/+301
Change-Id: Id4952b6f97f9e8f917fea5651dee91499d109e48
2014-03-27basic: sal_Bool->boolNoel Grandin4-86/+86
Change-Id: Idfe18863b2c6f60da5192d661f66e85a2bac09e5
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann7-148/+148
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26Split TYPEINFO into plain and TYPEINFO_OVERRIDEStephan Bergmann6-20/+20
...where the latter contains SAL_OVERRIDE annotations Change-Id: Id64794b388d83dfe7026440e8b20a5b5efd412d1
2014-03-25osl_setDetailedDebugMessageFunc is effectively doing nothingStephan Bergmann1-5/+0
...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-25These DbgOutf calls do not seem worth keepingStephan Bergmann1-25/+0
Change-Id: I6da5848ee2d1d23f921e56ac2eae09c6f148ebbd
2014-03-25Adapt to sal/log.hxxStephan Bergmann1-31/+34
Change-Id: Ibb4549bcca6dd93ae31ef84fbb34f5054d50fe7b
2014-03-25Adapt to sal/log.hxxStephan Bergmann1-10/+4
Change-Id: Ie90467573a2e0fb2da227c58ce2e89ab2318eb04
2014-03-25Avoid possible resource leaks by boost::scoped_arrayTakeshi Abe4-21/+17
Change-Id: I14e1f7ef217eb5e8e9db9f8962af868ab0a4ab81
2014-03-19convert OUString::match to OUString::endsWithNoel Grandin1-1/+1
Convert code like: rTxt.match( "---", rTxt.getLength()-3 ) to: rTxt.endsWith( "---" ) Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
2014-03-13basic: prefer passing OUString and OString by referenceNoel Grandin7-24/+25
Change-Id: I8121204cdb37d4e1d8967397f3e45bdab6aaddad
2014-03-10basic: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann2-16/+2
Change-Id: I7f0d75c5eaa62f012cb2ae19c5107c09cbc6936a
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann1-2/+2
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-02-28remove unused code in basic/CodeCompleteDataCacheNoel Grandin1-15/+0
Specifically: CodeCompleteDataCache::GetVars() const CodeCompleteDataCache::SetVars(boost::unordered_map const&) CodeCompleteDataCache::print() const Change-Id: I59fb6f50ff47747c3cac959302bf6b7c4f4d79d3
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann17-384/+384
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-25Remove visual noise from basicAlexander Wilms29-138/+138
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 Thiebaud7-39/+39
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-24Remove some temporaries around calls to SvNumberFormatter methodsMatteo Casalin2-5/+2
Change-Id: Ib03c97a52df120bac1ac9b2b9d2e52431ead1027
2014-02-23Remove unneccessary commentsAlexander Wilms10-68/+60
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 Lippert8-0/+9
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-20svl: sal_Bool -> boolStephan Bergmann5-16/+16
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-12more SvStream:operator>> conversionNoel Grandin5-14/+14
Convert the template based read_lenPrefixed methods to regular methods. Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019 Reviewed-on: https://gerrit.libreoffice.org/7895 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12convert SvStream::operator>> methods to ReadXXX methodsNoel Grandin12-69/+69
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-12fix crash when importing unsupported macro content, related fdo#59374Markus Mohrhard1-0/+6
Change-Id: I960c8174454074fd9ddb27fb17244d782c4cb24c
2014-02-07Simplify access to theCoreReflection singletonStephan Bergmann2-36/+6
Change-Id: I9901991a320b87895230a92095c9c7d3109380a6