Minor changes

preferencesAboutTextFull
Anatoly Mihalchenko 12 years ago
parent 0d429342ef
commit a0ee46503f
  1. 4
      src/domain/domain.pri
  2. 11
      src/pdf-merger/Utils.cpp

@ -45,8 +45,8 @@ SOURCES += src/domain/UBGraphicsScene.cpp \
src/domain/UBGraphicsStroke.cpp \ src/domain/UBGraphicsStroke.cpp \
src/domain/UBGraphicsMediaItem.cpp \ src/domain/UBGraphicsMediaItem.cpp \
src/domain/UBAbstractUndoCommand.cpp \ src/domain/UBAbstractUndoCommand.cpp \
src/domain/ubgraphicsgroupcontaineritem.cpp \ src/domain/UBGraphicsGroupContainerItem.cpp \
src/domain/ubgraphicsgroupcontaineritemdelegate.cpp \ src/domain/UBGraphicsGroupContainerItemDelegate.cpp \
src/domain/UBGraphicsStrokesGroup.cpp \ src/domain/UBGraphicsStrokesGroup.cpp \
src/domain/UBGraphicsItemGroupUndoCommand.cpp \ src/domain/UBGraphicsItemGroupUndoCommand.cpp \
src/domain/UBGraphicsItemDelegate.cpp \ src/domain/UBGraphicsItemDelegate.cpp \

@ -14,6 +14,7 @@
*/ */
#include <QtGlobal> #include <QtGlobal>
#include <QString>
#include "Config.h" #include "Config.h"
#include "Utils.h" #include "Utils.h"
#include "Exception.h" #include "Exception.h"
@ -65,18 +66,12 @@ double Utils::stringToDouble(const std::string & s )
std::string Utils::uIntToStr(unsigned int integer) std::string Utils::uIntToStr(unsigned int integer)
{ {
char str[10]; return std::string(QString::number(integer).toAscii());
snprintf(str, sizeof(str), "%u", integer);
return std::string(str);
} }
std::string Utils::doubleToStr(double doubleValue) std::string Utils::doubleToStr(double doubleValue)
{ {
char str[16]; return std::string(QString::number(doubleValue).toAscii());
snprintf(str, sizeof(str), "%f", doubleValue);
return std::string(str);
} }
int Utils::_stringToInt(const std::string & str) //throw ConvertException int Utils::_stringToInt(const std::string & str) //throw ConvertException

Loading…
Cancel
Save