summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 14:17:36 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-25 11:18:52 +0100
commitaefbc8a59bd7a3302f9253322135e2fd0f859ed7 (patch)
treec53d8eb2f8da86c2c26dc68c2eaaff5d4351c28b
parent86f4db5deae397380918d47578007fe8ca379182 (diff)
fix -Werror=maybe-uninitialized
Change-Id: I718016b5f9120c18868ed798785af1f8108be25b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94569 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 7daab7859f3b5b4297c45ac1631c68387192a962)
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 3b2fcaa891a7..971fc0fd0825 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -753,7 +753,7 @@ sal_Bool SAL_CALL ControlModelContainerBase::getEnabled()
{
SolarMutexGuard aGuard;
Reference<XPropertySet> xThis(*this, UNO_QUERY);
- bool bEnabled;
+ bool bEnabled = false;
xThis->getPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED)) >>= bEnabled;
return bEnabled;
}
/> This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15 2014-10-23Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83 2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5 2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca * Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> 2014-08-16Consistently use size_t and SAL_MAX_SIZEMatteo Casalin Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on. Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as return value in case of failure and in the related tests. Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927 2014-04-10Clean up function declarations and some unused functionsStephan Bergmann Change-Id: Ic720aa7b30bbe56d67e0b65f3e047ad3ae521a97 2014-03-11svx: sal_Bool->boolNoel Grandin Change-Id: I78da39fc553b2e5040ee6665377ea51a1c4d04d7 2014-02-26Remove visual noise from svxAlexander Wilms Change-Id: I56497d953b0500ba0967fddb36ca8bbbe86c62ad Reviewed-on: https://gerrit.libreoffice.org/8321 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> 2014-01-28bool improvementsStephan Bergmann Change-Id: Ic32faa81bfbb66a9d8632fb3db187e33c31188ed 2013-09-05convert include/svx/svdovirt.hxx from String to OUStringNoel Grandin Change-Id: I3af71e2eae19068c4eafd58d8be3a62506ea28f6 2013-07-26convert TakeObjNamePlural family to OUStringCaolán McNamara Change-Id: I947e47934677a4f9ced0bfc0db3932bcbbb25f36 2013-07-25convert TakeObjNameSingul family to OUStringCaolán McNamara Change-Id: I0c667cbcfcc1ea1f04d113a53b7ba83c943052e4 2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09 2012-11-27re-base on ALv2 code. Includes:Michael Meeks Patch contributed by Christian Lippka impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx http://svn.apache.org/viewvc?view=revision&revision=1167619 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation http://svn.apache.org/viewvc?view=revision&revision=1172343 cws mba34issues01: #i117719#: use correct resource ID http://svn.apache.org/viewvc?view=revision&revision=1172351 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Armin Le-Grand #118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested http://svn.apache.org/viewvc?view=revision&revision=1240195 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68 Patch contributed by Regina Henschel linecap: Reintegrating finished LineCap feature http://svn.apache.org/viewvc?view=revision&revision=1232507 Patch contributed by Wang Lei (leiw) #i118760# split the first table cell vertically, then undo&redo, the Presentation app will crash http://svn.apache.org/viewvc?view=revision&revision=1301361 cleanup globlmn hacks, undo dependent fixmes. 2012-09-27sw: implement page-relative size for drawing objects and import them from docxCédric Bosdonnat Change-Id: I98b5c53d4860278e3646324ca045114e37b4cf61 2012-08-07drop bogus eof linesThomas Arnhold Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410 2012-01-31XubString to rtl::OUString.Kohei Yoshida 2012-01-24Comments Translations.Stefan Knorr 2011-12-06impress210: #i41995# using view contact to get bound rect for old path ↵Christian Lippka ORACLE animation import # HG changeset patch # User Christian Lippka ORACLE <christian.lippka@oracle.com> # Date 1301475461 -7200 # Node ID d87b5924442237c58b243d83012f655ce59c312d # Parent c6dff567a9e0ee383071e53c64e3f5a06a186015 impress210: #i41995# using view contact to get bound rect for old path animation import 2011-12-06Fix a warning.Thorsten Behrens 2011-12-06impress210: #i41995# fixed import of path animation from sxi filesChristian Lippka ORACLE # HG changeset patch # User Christian Lippka ORACLE <christian.lippka@oracle.com> # Date 1299691949 -3600 # Node ID 8edc33ef50a3b6ebbc4e88d574b6b1ba57b1dbaa # Parent 0b9b11216b0d3401f8824542dd5f2794eb141035 impress210: #i41995# fixed import of path animation from sxi files 2011-11-27remove include of pch header from svxNorbert Thiebaud