[Webkit-unassigned] [Bug 64907] New: [Qt] Qt5 Build Fix: remove useless use of qRound(int)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 17:15:54 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64907

           Summary: [Qt] Qt5 Build Fix: remove useless use of qRound(int)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rohan at mcgovern.id.au


Rounding an integer doesn't make sense.

Since 2dcd3939a8bd5ff743e4c87f87b2d81b1a101467 in qtbase, code using qRound(int) does not compile:

  Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp: In constructor 'WebCore::FontPlatformData::FontPlatformData(const WebCore::FontDescription&, const WTF::AtomicString&, int, int)':
  Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp:67: error: call of overloaded 'qRound(int)' is ambiguous
  ../qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1176: note: candidates are: int qRound(double)
  ../qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1178: note:                 int qRound(float)
  Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp:69: error: call of overloaded 'qRound(int&)' is ambiguous
  ../qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1176: note: candidates are: int qRound(double)
  ../qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1178: note:                 int qRound(float)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list