mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Modernize-use-nullptr refactors code
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5008 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -160,7 +160,7 @@ void TitleBlockTemplateLogoManager::fillView() {
|
||||
}
|
||||
|
||||
QListWidgetItem *current_item = logos_view_ -> currentItem();
|
||||
updateLogoInformations(current_item, 0);
|
||||
updateLogoInformations(current_item, nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -181,9 +181,9 @@ QSize TitleBlockTemplateLogoManager::iconsize() const {
|
||||
*/
|
||||
QString TitleBlockTemplateLogoManager::confirmLogoName(const QString &initial_name) {
|
||||
QString name = initial_name;
|
||||
QDialog *rename_dialog = 0;
|
||||
QLabel *rd_label = 0;
|
||||
QLineEdit *rd_input = 0;
|
||||
QDialog *rename_dialog = nullptr;
|
||||
QLabel *rd_label = nullptr;
|
||||
QLineEdit *rd_input = nullptr;
|
||||
while (managed_template_ -> logos().contains(name)) {
|
||||
if (!rename_dialog) {
|
||||
rename_dialog = new QDialog(this);
|
||||
|
||||
Reference in New Issue
Block a user