From 1b8b70d9a3a7e11fc53c9223c64d5ac08c559187 Mon Sep 17 00:00:00 2001 From: Harini Chaganti Date: Wed, 20 Mar 2024 12:54:59 -0700 Subject: [PATCH] Removing const for methods --- .../ValidateUtilityNetworkTopology.cpp | 16 ++++++++-------- .../ValidateUtilityNetworkTopology.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.cpp b/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.cpp index 88e110bf70..d25c00e4a1 100644 --- a/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.cpp +++ b/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.cpp @@ -646,32 +646,32 @@ void ValidateUtilityNetworkTopology::setupTraceParameters() emit isBusy(); } -LabelDefinition* ValidateUtilityNetworkTopology::createDeviceLabelDefinition() const +LabelDefinition* ValidateUtilityNetworkTopology::createDeviceLabelDefinition() { - SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[devicestatus]", new QObject()); + SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[devicestatus]", this); - TextSymbol* textSymbol = new TextSymbol(new QObject()); + TextSymbol* textSymbol = new TextSymbol(this); textSymbol->setSize(12); textSymbol->setColor(Qt::blue); textSymbol->setHaloColor(Qt::white); textSymbol->setHaloWidth(2); - LabelDefinition* deviceLabelDefinition = new LabelDefinition(labelExpression, textSymbol, new QObject()); + LabelDefinition* deviceLabelDefinition = new LabelDefinition(labelExpression, textSymbol, this); deviceLabelDefinition->setUseCodedValues(true); return deviceLabelDefinition; } -LabelDefinition* ValidateUtilityNetworkTopology::createLineLabelDefinition() const +LabelDefinition* ValidateUtilityNetworkTopology::createLineLabelDefinition() { - SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[nominalvoltage]", new QObject()); + SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[nominalvoltage]", this); - TextSymbol* textSymbol = new TextSymbol(new QObject()); + TextSymbol* textSymbol = new TextSymbol(this); textSymbol->setSize(12); textSymbol->setColor(Qt::red); textSymbol->setHaloColor(Qt::white); textSymbol->setHaloWidth(2); - LabelDefinition* lineLabelDefinition = new LabelDefinition(labelExpression, textSymbol, new QObject()); + LabelDefinition* lineLabelDefinition = new LabelDefinition(labelExpression, textSymbol, this); lineLabelDefinition->setUseCodedValues(true); return lineLabelDefinition; } diff --git a/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.h b/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.h index 84fa3fcf9e..cf54888f34 100644 --- a/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.h +++ b/ArcGISRuntimeSDKQt_CppSamples/UtilityNetwork/ValidateUtilityNetworkTopology/ValidateUtilityNetworkTopology.h @@ -80,8 +80,8 @@ class ValidateUtilityNetworkTopology : public QObject private: Esri::ArcGISRuntime::MapQuickView* mapView() const; void setMapView(Esri::ArcGISRuntime::MapQuickView* mapView); - Esri::ArcGISRuntime::LabelDefinition* createDeviceLabelDefinition() const; - Esri::ArcGISRuntime::LabelDefinition* createLineLabelDefinition() const; + Esri::ArcGISRuntime::LabelDefinition* createDeviceLabelDefinition(); + Esri::ArcGISRuntime::LabelDefinition* createLineLabelDefinition(); void displayLabelDefinitions(); void setupTraceParameters(); void connectSignals();