From fc585f4af4630b030d7fbf4df9b1c938b1884f66 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 27 Jul 2022 07:42:55 +0200 Subject: [PATCH] Spreadsheet: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] --- src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp index 23c2f4dd57..5d81dbb497 100644 --- a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp +++ b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp @@ -139,7 +139,7 @@ void DlgBindSheet::accept() { bool commandActive = false; try { - const char *ref = ui->comboBox->itemData(ui->comboBox->currentIndex()).toByteArray().constData(); + const char *ref = ui->comboBox->itemData(ui->comboBox->currentIndex()).toByteArray().constData(); // clazy:exclude=returning-data-from-temporary auto obj = sheet; if(ref[0]) { const char *sep = strchr(ref,'#');