From bfa78670d21e2e79edffac7f30bf1cc46929dbdf Mon Sep 17 00:00:00 2001 From: qingfengxia Date: Mon, 4 Sep 2017 23:39:26 +0100 Subject: [PATCH] FEM: bugfix for Console print std::string which needs c_str() conversion --- src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp index e35e7b446c..266fd2c536 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp @@ -435,7 +435,7 @@ void TaskFemConstraintFluidBoundary::updateSubtypeUI() ui->tabBasicBoundary->setEnabled(true); } else { - Base::Console().Error("Fluid boundary type `%s` is not defined\n", boundaryType); + Base::Console().Error("Fluid boundary type `%s` is not defined\n", boundaryType.c_str()); } } @@ -458,7 +458,7 @@ void TaskFemConstraintFluidBoundary::updateTurbulenceUI() ui->labelTurbulentLengthValue->setText(tr("Hydraulic Diameter [m]")); } else { - Base::Console().Error("turbulence Spec type `%s` is not defined\n", turbulenceSpec); + Base::Console().Error("turbulence Spec type `%s` is not defined\n", turbulenceSpec.c_str()); } } @@ -497,7 +497,7 @@ void TaskFemConstraintFluidBoundary::updateThermalBoundaryUI() ui->spinTemperatureValue->setEnabled(true); } else { - Base::Console().Error("Thermal boundary type `%s` is not defined\n", thermalBoundaryType); + Base::Console().Error("Thermal boundary type `%s` is not defined\n", thermalBoundaryType.c_str()); } }