Skip to content

Commit 5c89ceb

Browse files
Fix a number of compile errors caused by enabling OSX warnings
1 parent c7ba4af commit 5c89ceb

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

engine/src/mac-menu.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ - (BOOL)performKeyEquivalent: (NSEvent *)event
424424
// SN-2014-12-05: [[ Bug 14019 ]] Forbid any Cmd-key reaction when the target is the colour picker
425425
// (that colour picker is modal after all)
426426
if ([[[event window] delegate] isKindOfClass: [MCColorPanelDelegate class]])
427-
return;
427+
return NO;
428428

429429
// If the event is not targetted at one of our windows, we just let things
430430
// flow as normal.

engine/src/player-platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,7 @@ void MCPlayer::SynchronizeUserCallbacks(void)
27502750
delete cblist;
27512751

27522752
if (!hasfilename())
2753-
return True;
2753+
return;
27542754

27552755
// Now set the markers in the player so that we get notified.
27562756
array_t<uint32_t> t_markers;
@@ -2761,7 +2761,7 @@ void MCPlayer::SynchronizeUserCallbacks(void)
27612761
MCPlatformSetPlayerProperty(m_platform_player, kMCPlatformPlayerPropertyMarkers, kMCPlatformPropertyTypeUInt32Array, &t_markers);
27622762
MCMemoryDeleteArray(t_markers . ptr);
27632763

2764-
return True;
2764+
return;
27652765
}
27662766

27672767
Boolean MCPlayer::isbuffering(void)

revbrowser/src/cefbrowser_osx.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ bool MCCefPlatformCreateBrowser(int p_window_id, MCCefBrowserBase *&r_browser)
240240

241241
NSView *t_handle;
242242
if (!GetWindowHandle(t_handle))
243-
return false;
243+
return;
244244

245245
t_handle = t_handle;
246246
}

revvideograbber/src/rrecapture.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ - (BOOL)startRecording: (BOOL *)r_success
784784
- (BOOL)stopRecording: (BOOL *)r_success
785785
{
786786
if (m_record_state == kCaptureSessionStateStopped)
787-
return;
787+
return NO;
788788

789789
[m_record_output recordToOutputFileURL: nil];
790790

@@ -1178,7 +1178,7 @@ void rreCaptureResumePreviewing(void)
11781178
NSString *rreCapturePreviewState(void)
11791179
{
11801180
if (!CaptureSessionExists())
1181-
return;
1181+
return nil;
11821182

11831183
return [g_session previewState];
11841184
}
@@ -1259,7 +1259,7 @@ void rreCaptureSetRecordOutput(NSString *p_image_id)
12591259
NSString *rreCaptureStartRecording(void)
12601260
{
12611261
if (!CaptureSessionExists())
1262-
return;
1262+
return nil;
12631263

12641264
BOOL t_success;
12651265
if (![g_session startRecording: &t_success])
@@ -1274,7 +1274,7 @@ void rreCaptureSetRecordOutput(NSString *p_image_id)
12741274
NSString *rreCaptureStopRecording(void)
12751275
{
12761276
if (!CaptureSessionExists())
1277-
return;
1277+
return nil;
12781278

12791279
BOOL t_success;
12801280
[g_session stopRecording: &t_success];
@@ -1309,7 +1309,7 @@ void rreCaptureResumeRecording(void)
13091309
int32_t rreCaptureGetRecordFrameRate(void)
13101310
{
13111311
if (!CaptureSessionExists())
1312-
return;
1312+
return nil;
13131313

13141314
return [g_session maxFrameRate];
13151315
}
@@ -1325,7 +1325,7 @@ void rreCaptureSetRecordFrameRate(int32_t p_rate)
13251325
NSString *rreCaptureGetRecordFrameSize(void)
13261326
{
13271327
if (!CaptureSessionExists())
1328-
return;
1328+
return nil;
13291329

13301330
NSSize t_size;
13311331
t_size = [g_session maxFrameSize];
@@ -1345,7 +1345,7 @@ void rreCaptureSetRecordFrameSize(int32_t p_width, int32_t p_height)
13451345
NSString *rreCaptureRecordState(void)
13461346
{
13471347
if (!CaptureSessionExists())
1348-
return;
1348+
return nil;
13491349

13501350
return [g_session recordState];
13511351
}

0 commit comments

Comments
 (0)