reportdesign/source/ui/inspection/GeometryHandler.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit 84f85e8ad10ce1913dd530a85fee22cbc4d11ea7
Author:     Bogdan Buzea <[email protected]>
AuthorDate: Mon Oct 21 16:14:54 2024 +0200
Commit:     David Gilbert <[email protected]>
CommitDate: Mon Nov 4 22:50:54 2024 +0100

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 734, 
739
    V1037 Two or more case-branches perform the same actions. Check lines: 
1031, 1054
    
    Change-Id: I835ac504eadcbdd44b2ee507f40e6f40ff5e416d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175318
    Reviewed-by: David Gilbert <[email protected]>
    Tested-by: Jenkins

diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx 
b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 8ec61ceaca5e..a2a731777cd9 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -731,10 +731,6 @@ inspection::LineDescriptor SAL_CALL 
GeometryHandler::describePropertyLine(const
             break;
         case PROPERTY_ID_INITIALFORMULA:
         case PROPERTY_ID_FORMULA:
-            aOut.PrimaryButtonId = UID_RPT_PROP_FORMULA;
-            aOut.HasPrimaryButton = true;
-            aOut.Control = 
_xControlFactory->createPropertyControl(inspection::PropertyControlType::MultiLineTextField
 , false);
-            break;
         case PROPERTY_ID_CONDITIONALPRINTEXPRESSION:
             aOut.PrimaryButtonId = UID_RPT_PROP_FORMULA;
             aOut.HasPrimaryButton = true;
@@ -1028,6 +1024,7 @@ uno::Any SAL_CALL 
GeometryHandler::convertToPropertyValue(const OUString & Prope
         case PROPERTY_ID_SCOPE:
         case PROPERTY_ID_FORMULALIST:
         case PROPERTY_ID_AREA:
+        case PROPERTY_ID_MIMETYPE:
             aPropertyValue = _rControlValue;
             break;
         case PROPERTY_ID_TYPE:
@@ -1050,9 +1047,6 @@ uno::Any SAL_CALL 
GeometryHandler::convertToPropertyValue(const OUString & Prope
                     aPropertyValue <<= nFound;
             }
             break;
-        case PROPERTY_ID_MIMETYPE:
-            aPropertyValue = _rControlValue;
-            break;
         case PROPERTY_ID_VERTICALALIGN:
             {
                 OUString sValue;

Reply via email to