Explicit pointer declarations when using the auto keyword

This commit is contained in:
Nav
2021-10-28 20:44:38 +01:00
parent 63dc3e881f
commit 1d9d482da9
19 changed files with 41 additions and 41 deletions

View File

@@ -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);

View File

@@ -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) {