Fix FTBFS on x86_64-w64-mingw32 cross-compilation, thank Joshua

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4083 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-08-03 05:43:44 +00:00
parent b025830100
commit 3c327009a5
8 changed files with 4 additions and 53 deletions

View File

@@ -540,28 +540,6 @@ QET::DiagramArea QET::diagramAreaFromString(const QString &string) {
else return(QET::ElementsArea);
}
/**
@param ptr pointeur quelconque
@return une representation hexadecimale de l'adresse du pointeur
*/
QString QET::pointerString(void *ptr) {
static int hexa_digits = -1;
if (hexa_digits == -1) {
// determine le nombre de bits dans un unsigned long int
hexa_digits = std::numeric_limits<unsigned long int>::digits / 4;
}
return(
QString("0x%1").arg(
reinterpret_cast<unsigned long int>(ptr),
hexa_digits,
16,
QChar('0')
)
);
}
/**
Round \a x to the nearest multiple of the invert of \a epsilon.
For instance, epsilon = 10 will round to 1/10 = 0.1