summaryrefslogtreecommitdiff
path: root/vcl/osx/printaccessoryview.mm
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2014-02-24 09:08:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-24 13:17:37 +0000
commit42837a066b2347effa75926104f3f3ffc96206b7 (patch)
tree4fac4398665aafa9b2b66c685dfa0c5df6cd1fb7 /vcl/osx/printaccessoryview.mm
parent93f3f72d18e551c8edd6a010cb78d9cbe404f8ef (diff)
Resolves: #i123840# prefer NSZero* constants over open coded alternatives
(cherry picked from commit a8c471a7003fdac7d5e1c97e903f669da6bcf0c7) Conflicts: vcl/osx/salframe.cxx vcl/osx/salframeview.mm vcl/osx/salnsmenu.mm vcl/osx/salobj.cxx Change-Id: I379d80355d741dd28aad2e6119a8b82ac10159f5
Diffstat (limited to 'vcl/osx/printaccessoryview.mm')
-rw-r--r--vcl/osx/printaccessoryview.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index fd77619a593b..40e9036096a9 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -640,7 +640,7 @@ static void adjustViewAndChildren( NSView* pNSView, NSSize& rMaxSize,
NSArray* pSubViews = [pNSView subviews];
unsigned int nViews = [pSubViews count];
- NSRect aUnion = { { 0, 0 }, { 0, 0 } };
+ NSRect aUnion = NSZeroRect;
// get the combined frame of all subviews
for( unsigned int n = 0; n < nViews; n++ )
@@ -709,7 +709,7 @@ static void adjustTabViews( NSTabView* pTabView, NSSize aTabSize )
static NSControl* createLabel( const rtl::OUString& i_rText )
{
NSString* pText = CreateNSString( i_rText );
- NSRect aTextRect = { { 0, 0 }, {20, 15} };
+ NSRect aTextRect = { NSZeroPoint, {20, 15} };
NSTextField* pTextView = [[NSTextField alloc] initWithFrame: aTextRect];
[pTextView setFont: [NSFont controlContentFontOfSize: 0]];
[pTextView setEditable: NO];
@@ -1100,9 +1100,9 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
NSView* pCurParent = 0;
long nCurY = 0;
long nCurX = 0;
- NSRect aViewFrame = { { 0, 0 }, {600, 400 } };
+ NSRect aViewFrame = { NSZeroPoint, {600, 400 } };
NSRect aTabViewFrame = { { 190, 0 }, {410, 400 } };
- NSSize aMaxTabSize = { 0, 0 };
+ NSSize aMaxTabSize = NSZeroSize;
NSView* pAccessoryView = [[NSView alloc] initWithFrame: aViewFrame];
NSTabView* pTabView = [[NSTabView alloc] initWithFrame: aTabViewFrame];
[pAccessoryView addSubview: [pTabView autorelease]];