Closed
Bug 667663
Opened 13 years ago
Closed 13 years ago
gfxwindowsplatform.cpp(506) : warning C4715: 'gfxWindowsPlatform::GetScaledFontForFont' : not all control paths return a value
Categories
(Core :: Graphics, defect)
Tracking
()
VERIFIED
FIXED
mozilla7
People
(Reporter: RyanVM, Assigned: RyanVM)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file)
948 bytes,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
gfxwindowsplatform.cpp(506) : warning C4715: 'gfxWindowsPlatform::GetScaledFontForFont' : not all control paths return a value Looks like it's complaining because the function only returns a value inside the if condition. This code was added in bug 651858 part 2. http://hg.mozilla.org/mozilla-central/rev/95039cfae6a3 Bas, what should be returned if DWrite is disabled?
Comment 1•13 years ago
|
||
If DWrite is disabled this will all break down, so NULL seems fine :).
Assignee | ||
Comment 2•13 years ago
|
||
Out of curiosity, why use the if statement at all if the DWrite situation is the only one that can do something sane anyway?
Comment 3•13 years ago
|
||
To minimize churn on the function as we add more azure backends.
Assignee | ||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Comment on attachment 542332 [details] [diff] [review] Patch Review of attachment 542332 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #542332 -
Flags: review?(bas.schouten) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 7•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/93ad15ba19d5
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a2) Gecko/20110706 Firefox/7.0a2 Verified fixed - detailed by the changeset in comment 7
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•