--HG--
branch : feature
This commit is contained in:
dismine 2014-03-06 17:35:24 +02:00
parent 39d0e94cec
commit d06bc59000
4 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ public:
Q_CHECK_PTR(obj); Q_CHECK_PTR(obj);
return obj; return obj;
} }
catch(const std::bad_alloc &) catch (const std::bad_alloc &)
{ {
throw VExceptionBadId(tr("Can't cast object"), id); throw VExceptionBadId(tr("Can't cast object"), id);
return nullptr; return nullptr;

View File

@ -277,7 +277,7 @@ QString DialogHistory::Record(const VToolRecord &tool)
{ {
const QString pName = data->GeometricObject<const VPointF *>(points.at(0).P().id())->name(); const QString pName = data->GeometricObject<const VPointF *>(points.at(0).P().id())->name();
record = QString(tr("Curve point %1")).arg(pName); record = QString(tr("Curve point %1")).arg(pName);
if(points.size() > 1) if (points.size() > 1)
{ {
const QString pName = data->GeometricObject<const VPointF *>(points.last().P().id())->name(); const QString pName = data->GeometricObject<const VPointF *>(points.last().P().id())->name();
record.append(QString("_%1").arg(pName)); record.append(QString("_%1").arg(pName));

View File

@ -519,7 +519,7 @@ void TableWindow::PsFile(const QString &name) const
//TODO delete parametr name and use last parameter in string list instead. //TODO delete parametr name and use last parameter in string list instead.
void TableWindow::PdfToPs(const QString &name, const QStringList &params) const void TableWindow::PdfToPs(const QString &name, const QStringList &params) const
{ {
#ifndef QT_NO_CURSOR #ifndef QT_NO_CURSOR
QApplication::setOverrideCursor(Qt::WaitCursor); QApplication::setOverrideCursor(Qt::WaitCursor);
#endif #endif

View File

@ -477,7 +477,7 @@ void VToolUnionDetails::Create(const quint32 _id, const VDetail &d1, const VDeta
qint32 pointsD2 = 0; //Keeps count points second detail, what we already add. qint32 pointsD2 = 0; //Keeps count points second detail, what we already add.
if (typeCreation == Tool::FromGui) if (typeCreation == Tool::FromGui)
{ {
qint32 j = 0, i = 0; qint32 j = 0, i = 0;
VDetail newDetail; VDetail newDetail;
do do