Spreadsheet: Use Base::fromStdString/toStdString.

This commit is contained in:
Eivind Kvedalen
2015-08-13 23:49:00 +02:00
committed by wmayer
parent b65af55fc1
commit 6d0df4c58b
4 changed files with 17 additions and 14 deletions

View File

@@ -37,6 +37,7 @@
#include <Base/Placement.h>
#include <Base/Reader.h>
#include <Base/Writer.h>
#include <Base/Tools.h>
#include "SpreadsheetExpression.h"
#include "Sheet.h"
#include "SheetObserver.h"
@@ -670,7 +671,7 @@ void Sheet::recomputeCell(CellAddress p)
catch (const Base::Exception & e) {
QString msg = QString::fromUtf8("ERR: %1").arg(QString::fromUtf8(e.what()));
setStringProperty(p, msg.toStdString());
setStringProperty(p, Base::Tools::toStdString(msg));
if (cell)
cell->setException(e.what());