Explicit pointer declarations when using the auto keyword
This commit is contained in:
@@ -74,7 +74,7 @@ PinWidget::PinWidget(
|
||||
this->layout->addSpacing(3);
|
||||
|
||||
if (this->isLeftLayout || this->isRightLayout) {
|
||||
auto stackedLabelLayout = new QVBoxLayout();
|
||||
auto* stackedLabelLayout = new QVBoxLayout();
|
||||
stackedLabelLayout->addWidget(this->pinNameLabel);
|
||||
stackedLabelLayout->addSpacing(2);
|
||||
stackedLabelLayout->addWidget(this->pinNumberLabel);
|
||||
|
||||
@@ -58,7 +58,7 @@ QuadFlatPackageWidget::QuadFlatPackageWidget(
|
||||
|
||||
const auto pinCountPerLayout = static_cast<int>(targetVariant.pinDescriptorsByNumber.size() / 4);
|
||||
for (const auto& [targetPinNumber, targetPinDescriptor]: targetVariant.pinDescriptorsByNumber) {
|
||||
auto pinWidget = new PinWidget(targetPinDescriptor, targetVariant, insightWorker, this);
|
||||
auto* pinWidget = new PinWidget(targetPinDescriptor, targetVariant, insightWorker, this);
|
||||
this->pinWidgets.push_back(pinWidget);
|
||||
|
||||
if (targetPinNumber <= pinCountPerLayout) {
|
||||
|
||||
Reference in New Issue
Block a user