summaryrefslogtreecommitdiff
path: root/pyuno/source
AgeCommit message (Collapse)Author
2014-08-07coverity#982756 Dereference null return valueCaolán McNamara
Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
2014-07-21coverity#706600 Uncaught exceptionCaolán McNamara
Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
2014-07-10coverity#982756 Dereference null return valueCaolán McNamara
Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
2014-06-05various: remove SAL_THROW macroNoel Grandin
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-04Demystify magic poniesStephan Bergmann
Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
2014-06-03coverity#982753 Dereference null return valueCaolán McNamara
Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
2014-06-03coverity#982755 Dereference null return valueCaolán McNamara
Change-Id: I652b308d087c1ee9fff95f81297b079e3f816e07
2014-06-03coverity#982756 Dereference null return valueCaolán McNamara
Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
2014-05-26coverity#982751 Dereference null return valueCaolán McNamara
Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
2014-05-26coverity#982752 Dereference null return valueCaolán McNamara
Change-Id: I394a13939d67b6959903e277dd78ea05cdcadfa8
2014-05-26coverity#982754 Dereference null return valueCaolán McNamara
Change-Id: I0d0dc196f223a988fd029cc61a8b160b2150534c
2014-05-26coverity#982757 Dereference null return valueCaolán McNamara
Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
2014-05-26coverity#982758 Dereference null return valueCaolán McNamara
Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
2014-05-26coverity#982761 Dereference null return valueCaolán McNamara
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
2014-05-26coverity#982759 Dereference null return valueCaolán McNamara
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
2014-05-26coverity#982760 Dereference null return valueCaolán McNamara
Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29
2014-05-26coverity#982169 Unchecked return valueCaolán McNamara
Change-Id: I4aa333a907ff050fff4a4c7c41120ce00961673c
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-19pyuno: fix warnings with system python 3.4.0Thomas Arnhold
warning: missing initializer for member '_typeobject::tp_finalize' [-Wmissing-field-initializers] Change-Id: I7ab82025fd8c2f0d8fa4943690a217c4a4dc369d
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-08pyuno: sal_Bool->boolNoel Grandin
Change-Id: I071c8984cd86b523d8ebae04b5fb2bdc1ac1a5b1
2014-04-02coverity#1019376 Resource leakCaolán McNamara
Change-Id: Ifa9c5a7b3aa0d219e09fa3081e66d870a508a84d
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-18Find places where OUString and OString are passed by value.Noel Grandin
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-10pyuno: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann
Change-Id: Ia99dca3619fb893d1b9f3a46f1f1285e3fe1bc8e
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from pyunoAlexander Wilms
Change-Id: I27f5edf45d5968879436e2466f953576651ed8ae Reviewed-on: https://gerrit.libreoffice.org/8290 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.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-01-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2014-01-30coverity#983054, reorder code to avoid memory leakStephan Bergmann
Change-Id: If14160802f77673e3ebe69850e00d0506125969c
2014-01-29bool improvementsStephan Bergmann
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-28bool improvementsStephan Bergmann
Change-Id: I42f6d8b3e62834b0612d84586f791f25e967c9c7
2014-01-28coverity#440338 Dereference null return valueCaolán McNamara
Change-Id: I5da7c1d8fe7f4632b386a02dd54f4b203a00fc25
2014-01-10Use boolStephan Bergmann
Change-Id: I4c05c602ecdd77d07e8106387270bf01718e975b
2014-01-07No serviceNames attribute in LoaderStephan Bergmann
Change-Id: I6cc001d18683fc412f0ec0b6a33054d6e745463f
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-11-25Fix different typos for "unknown"Julien Nabet
Change-Id: Ib2ee00d4e9f4c6c05d090adfcd5fb791fcbca72c
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann
Change-Id: Ic4dba1d313c3a27ac02f9d382d2b55218e1bad10
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin
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 Grandin
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11remove unnecessary use of OUString constructorNoel Grandin
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-10sal: add special handling of argc==0 to osl_setCommandArgs()Michael Stahl
... to set up a fake command line. This is used from pyuno, when invoked from the "python" executable as "import uno". On WNT there is an API to get the actual command line, so just use that even in the "fake" case; on UNX just fake something up. Just for the record the whole osl_setCommandArgs() is called exactly once assumption should work out _unless_ there is a program that uses SAL_MAIN _and_ does a python-level "import uno" _before_ it wants to create a python-based UNO service (via pyuno_loader::CreateInstance), since pyuno already takes care to call Runtime::initialize() at most once. Change-Id: Ifd23de733ea3e6b694d46ab039b6aa4fd3e7fc1b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-09pyuno: set up fake command line in getComponentContext()Michael Stahl
Easy to trigger the assert in osl_getCommandArgCount(), just run instdir/*/program/python and "import unohelper". Avoid that by setting up a fake command line, hopefully nobody expects to be able to give relevant args to python... Change-Id: I0df6c23d6ecbb3c2bce81a9d5bcecdcb1729ddbb
2013-10-07fdo#70196: Python 2 compatibility for UNO import error handlingDavid Bolen
Add backwards compatibility support for Python 2 to the earlier change in fdo#66025 to improve import error handling under Python 3. Change-Id: I47bf8ef255c4c2a3e4a2754414977aaa8ed32483 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-02WaE: unused variableTor Lillqvist
Change-Id: Iea8461444c29de9968a5bfa85a2dabb186db47ca
2013-09-22gbuild: remove libraries from OUTDIR and WORKDIRMichael Stahl
Refactor everything to find and link libraries directly in INSTDIR. - add gb_LinkTarget_get_linksearchpath_for_layer, and use it to set up -L paths for T_LDFLAGS in such a way that only allowed libraries can be linked against; i.e. it's not possible to link URE linktargets against OOO or not-installed libraries - gb_Library_get_target is now same as the gb_LinkTarget_get_target (TODO: this needs cleanup) - since a pattern rule won't work for linking libraries in INSTDIR, add a separate per-file rule for every INSTDIR lib - pattern rule can't find link target in the clean target any more so add a LINKTARGET variable - disable gb_Library_add_auxtarget, no auxtargets need to be copied - tweak the call to gb_Library_Library_platform to pass in a path in sdk/lib for the versioned URE libs - fix the Library clean target - add LAYER parameter to gb_LinkTarget_LinkTarget - adjust platform link commands - MSVC link command now uses explicit -manifestfile and -pdb parameters to keep misc. files out of INSTDIR - remove gb_Helper_OUTDIR_FOR_BUILDLIBDIR - adjust Extension, CppunitTest, JunitTest, PythonTest, Gallery, various CustomTargets to search INSTDIR - remove SDK library symlinks and import libs from odk/Package_lib - on Mac OS X, put .dylib symlinks into sdk/lib even though those are not packaged and would be created by the SDK configury; we need these to be somewhere for linking anyway - add a (unfortunately cyclic) dependency on Package ure_install to sal Change-Id: I70d88742f8c8232ad7b9521416275c67b64fe6cf