summaryrefslogtreecommitdiff
path: root/extensions/source
AgeCommit message (Collapse)Author
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-04fdo#54938: Convert some places to use cppu::supportsServiceMarcos Paulo de Souza
The last cases are non obvious, so it's pratically done Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547 Reviewed-on: https://gerrit.libreoffice.org/8445 Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-03-03Use cstdlib std::abs instead of stdlib.h absStephan Bergmann
...because the latter lacks the abs(long) overload in some popular environments, cf. <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401> "stdlib.h does not provide abs(long) overload." Similarly, stdlib.h lacks the abs(float), abs(double), abs(long double) overloads compared to cmath there, whose use was apparently intended in sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx. Rewrote that to use CPPUNIT_ASSERT_DOUBLES_EQUAL instead, which revealed that the comparisons need rather large deltas of .1 resp. .2 (which the original code hid with an implicit conversion to integral type, thus using an effective delta of 1). Discovered with -Wabsolute-value ("absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value") recently introduced on Clang trunk towards 3.5. Change-Id: I4c41575ffdccb2944498b662bd3a53fd510cb0c0
2014-03-03EXTENSIONS : Remove usage of DBG_CTOR and DBG_DTOR.Arnaud Versini
Valgrind is capable of detecting such bugs. No need for extra macros. Change-Id: Ied33afa8b32149b6b7b1c0725167349e817d6c89 Reviewed-on: https://gerrit.libreoffice.org/8407 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-02coverity#704634 Dereference after null checkCaolán McNamara
Change-Id: Id6e4e71a9d261734d01de72f81e2df0f7fbad475
2014-03-02unnecessary check before deleteCaolán McNamara
Change-Id: I62b42aa20395ff2f6b3dd2b7ab6460be2ce943b8
2014-02-28WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'Tor Lillqvist
Change-Id: I6a15e3e705015fdfa92e0606935af8b83cc9a183
2014-02-27Remove visual noise from extensionsAlexander Wilms
Change-Id: I0397d0d0e5343b7ed192a790664b068ac6955bd3 Reviewed-on: https://gerrit.libreoffice.org/8259 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27coverity#704633 Dereference after null checkCaolán McNamara
Change-Id: I4985249110da93ba67881dcd1c8cd1dc66ae08e2
2014-02-27editeng: sal_Bool->boolNoel Grandin
Change-Id: I7da10ad3ba8017d64c723b53795348edf0e7dd6d
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-24harmonize Tell() Seek() type.Norbert Thiebaud
Change-Id: I2e472aa0279d0763762d3c660207cd74da512626
2014-02-24Remove unnecessary bool2anyStephan Bergmann
Change-Id: Ie2caee1d5a7912011d76172539c2f8f37eaee5cf
2014-02-23coverity#704631 Dereference after null checkCaolán McNamara
Change-Id: Id74b7073b6e9075003a98172e85696274a8c1924
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-21-Werror,-Wunused-functionStephan Bergmann
Change-Id: Ic792930c291bae1cf18ffd65548908e910c69c45
2014-02-21vcl: sal_Bool -> boolStephan Bergmann
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21editeng: sal_Bool->boolNoel Grandin
Change-Id: I1b215ef78bcade675a2f80def0d6d5afe0ff3d2c
2014-02-21Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe
Change-Id: I674b7ee507258555b667657a13db6fda9b8d8372
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-20svl: sal_Bool -> boolStephan Bergmann
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-18coverity#984087 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ib88a068ea49955d48a0945b28b1016e0cccaf437
2014-02-18coverity#984089 Uninitialized scalar fieldCaolán McNamara
Change-Id: I299cfbe1f53af20f16dc02d3616d284a34da870d
2014-02-18Drop unnecessary #includeTakeshi Abe
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-17comphelper: sal_Bool -> boolStephan Bergmann
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17convert biblio choose data source dialog to .uiCaolán McNamara
Change-Id: Ia94c417be95f5cd8c1d694a61c5004b0e8486416
2014-02-13coverity#737107 Uncaught exceptionCaolán McNamara
Change-Id: Ia0906af52b217506e63138565cc0eb08842aaef1
2014-02-13coverity#737105 Uncaught exceptionCaolán McNamara
Change-Id: I44acb57da7539a63562d9723ee5d6f83f1dcbbb6
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-11coverity#735424 Logically dead codeCaolán McNamara
Change-Id: Ibd58c1660edca27141c27f7607f426f9df8d6b79
2014-02-10Do not use this in ctorStephan Bergmann
Change-Id: If2177d309626ef599c7c15f6195151dc0d0a8e30
2014-02-10auto_ptr -> scoped_ptrStephan Bergmann
Change-Id: I16d457d2981b7b3f60c150d362b8b51f6a2700fd
2014-02-10Remove unnecessary abstract base class IByNameAccessStephan Bergmann
Change-Id: I55e8ff25f4a56a1666d49185236ee5cd5c4ed392
2014-02-06Typo: pasword -> passwordJulien Nabet
Change-Id: I612bf6bb620a76f9fa3542145e942969b9365d98
2014-02-06coverity#707771 coverity gold, Uninitialized m_refCountCaolán McNamara
Change-Id: I98398a3cd7a86a5f31c711f7f1cff0d467a1d2e5
2014-02-06coverity#707770 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ie324197ac0069d8c534cee7a2bae524f9d7f2207
2014-02-02drop unused aURLSTCaolán McNamara
Change-Id: Id009e6c372a5586be2eb84882d3feec8af78e30d
2014-02-01cppcheck: redundant assignmentJulien Nabet
Change-Id: I62fbbe97c24deb45d8a79463e463a6783201ba98
2014-01-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2014-01-30reset Stati is presumably to reset stateCaolán McNamara
Change-Id: Ib448d4e43178dedea6bdaebfc78d850b07aebe3e
2014-01-30fdo#39468 Translate German commentsSven Wehner
Also remove ASCII art, and fix minor typos. Note: I left the unknown word "Stati" as is. This could be an incorrect plural for "status". Change-Id: Ic19407c0ebb3aba3ebba4940b2511ba5b8dc825e Reviewed-on: https://gerrit.libreoffice.org/7716 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-29Remove some redundant castsStephan Bergmann
Change-Id: I03317f55f5e08b131302190f34169054bacbeb28
2014-01-29bool improvementsStephan Bergmann
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-28bool improvementsStephan Bergmann
Change-Id: If3402725c9cbff5df45043bd2ecd22dd6241c052
2014-01-28coverity#705810 Dereference before null checkCaolán McNamara
Change-Id: I2fab51f08c461faaf4b88b4b7c0b887ba877226c
2014-01-28coverity#705811 Dereference before null checkCaolán McNamara
Change-Id: I275739819715f1537e80d621b19a88a6fdbab95b
2014-01-27bool improvementsStephan Bergmann
Change-Id: I757e19313576d2c3d13af1cb720f182f0de91613
2014-01-26fdo#54938 Convert extensions to cppu::supportsServiceAlexandre Vicenzi
Change-Id: If3675c28a204168d7385b1421dbb70b2a9b719e2 Reviewed-on: https://gerrit.libreoffice.org/7648 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-23Let C++ inline functions return bool instead of sal_BoolStephan Bergmann
...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Missing overloads of insert() for bool have been added to OStringBuffer and OUStringBuffer (which required dropping one !VALID_CONVERSION check that would now pick that overload, but would be flagged by compilerplugins/clang/pointertobool.cxx). Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
2014-01-23SfxNoLayoutSingleTabDialog not needed anymoreCaolán McNamara
all single tab dialogs are .ui enabled now. So now we can remove SfxNoLayoutSingleTabDialog and merge SfxSingleTabDialog and ~SfxNoLayoutSingleTabDialogBase together Change-Id: If0acc792d85b7d399572257d7e9b0e12993ba3fe