mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user