diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 11:19:56 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 11:19:56 +1100 |
commit | c9be849f2ed9a972c9e0a7d2eaa89593fc375a2c (patch) | |
tree | 56088c49e6995dcc54c0b287cce4f6ef86517ff1 /cocoa/ScintillaView.mm | |
parent | a829b2334bda5567113d9c63e91ceb041ed99f34 (diff) | |
download | scintilla-mirror-c9be849f2ed9a972c9e0a7d2eaa89593fc375a2c.tar.gz |
Type casts so will build in std=c++11 mode.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 5ab86ee80..542c51679 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -932,9 +932,9 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa int scrollerWidth = [NSScroller scrollerWidth]; NSSize size = [self frame].size; - NSRect hScrollerRect = {0, 0, size.width, scrollerWidth}; - NSRect vScrollerRect = {size.width - scrollerWidth, 0, scrollerWidth, size.height}; - NSRect barFrame = {0, size.height - scrollerWidth, size.width, scrollerWidth}; + NSRect hScrollerRect = {0, 0, size.width, static_cast<CGFloat>(scrollerWidth)}; + NSRect vScrollerRect = {size.width - scrollerWidth, 0, static_cast<CGFloat>(scrollerWidth), size.height}; + NSRect barFrame = {0, size.height - scrollerWidth, size.width, static_cast<CGFloat>(scrollerWidth)}; BOOL infoBarVisible = mInfoBar != nil && ![mInfoBar isHidden]; // Horizontal offset of the content. Almost always 0 unless the vertical scroller @@ -1009,7 +1009,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa } } - NSRect contentRect = {contentX, vScrollerRect.origin.y, size.width, size.height}; + NSRect contentRect = {static_cast<CGFloat>(contentX), vScrollerRect.origin.y, size.width, size.height}; [mContent setFrame: contentRect]; if (infoBarVisible) |