Skip to content

Commit

Permalink
Include mac/linux in RString reference changes, should compile now...
Browse files Browse the repository at this point in the history
  • Loading branch information
xwidghet committed Oct 30, 2016
1 parent bc26e1d commit 3ef472b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/arch/ArchHooks/ArchHooks_MacOSX.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ArchHooks_MacOSX : public ArchHooks
RString GetArchName() const;
void DumpDebugInfo();
RString GetPreferredLanguage();
bool GoToURL( RString sUrl );
bool GoToURL( const RString &sUrl );
float GetDisplayAspectRatio();
};

Expand Down
2 changes: 1 addition & 1 deletion src/arch/ArchHooks/ArchHooks_MacOSX.mm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ static bool DoEmergencyShutdown( int signal, siginfo_t *si, const ucontext_t *us
return ret;
}

bool ArchHooks_MacOSX::GoToURL( RString sUrl )
bool ArchHooks_MacOSX::GoToURL( const RString &sUrl )
{
CFURLRef url = CFURLCreateWithBytes( kCFAllocatorDefault, (const UInt8*)sUrl.data(),
sUrl.length(), kCFStringEncodingUTF8, NULL );
Expand Down
2 changes: 1 addition & 1 deletion src/arch/ArchHooks/ArchHooks_Unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void ArchHooks_Unix::Init()
#endif
}

bool ArchHooks_Unix::GoToURL( RString sUrl )
bool ArchHooks_Unix::GoToURL( const RString &sUrl )
{
int status;
pid_t p = fork();
Expand Down
2 changes: 1 addition & 1 deletion src/arch/ArchHooks/ArchHooks_Unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ArchHooks_Unix: public ArchHooks
void MountInitialFilesystems( const RString &sDirOfExecutable );
float GetDisplayAspectRatio() { return 4.0f/3; }

bool GoToURL( RString sUrl );
bool GoToURL( const RString &sUrl );

static clockid_t GetClock();

Expand Down
12 changes: 6 additions & 6 deletions src/arch/Dialog/DialogDriver_MacOSX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF

#define LSTRING(b,x) CFBundleCopyLocalizedString( (b), CFSTR(x), NULL, CFSTR("Localizable") )

void DialogDriver_MacOSX::OK( RString sMessage, RString sID )
void DialogDriver_MacOSX::OK( const RString &sMessage, const RString &sID )
{
CFBundleRef bundle = CFBundleGetMainBundle();
CFStringRef sDSA = LSTRING( bundle, "Don't show again" );
Expand All @@ -49,12 +49,12 @@ void DialogDriver_MacOSX::OK( RString sMessage, RString sID )
Dialog::IgnoreMessage( sID );
}

void DialogDriver_MacOSX::Error( RString sError, RString sID )
void DialogDriver_MacOSX::Error( const RString &sError, const RString &sID )
{
ShowAlert( kCFUserNotificationStopAlertLevel, sError, CFSTR("OK") );
}

Dialog::Result DialogDriver_MacOSX::OKCancel( RString sMessage, RString sID )
Dialog::Result DialogDriver_MacOSX::OKCancel( const RString &sMessage, const RString &sID )
{
CFBundleRef bundle = CFBundleGetMainBundle();
CFStringRef sOK = LSTRING( bundle, "OK" );
Expand All @@ -75,7 +75,7 @@ Dialog::Result DialogDriver_MacOSX::OKCancel( RString sMessage, RString sID )
}
}

Dialog::Result DialogDriver_MacOSX::AbortRetryIgnore( RString sMessage, RString sID )
Dialog::Result DialogDriver_MacOSX::AbortRetryIgnore( const RString &sMessage, const RString &sID )
{
CFBundleRef bundle = CFBundleGetMainBundle();
CFStringRef sIgnore = LSTRING( bundle, "Ignore" );
Expand All @@ -101,7 +101,7 @@ Dialog::Result DialogDriver_MacOSX::AbortRetryIgnore( RString sMessage, RString
}
}

Dialog::Result DialogDriver_MacOSX::AbortRetry( RString sMessage, RString sID )
Dialog::Result DialogDriver_MacOSX::AbortRetry( const RString &sMessage, const RString &sID )
{
CFBundleRef bundle = CFBundleGetMainBundle();
CFStringRef sRetry = LSTRING( bundle, "Retry" );
Expand All @@ -122,7 +122,7 @@ Dialog::Result DialogDriver_MacOSX::AbortRetry( RString sMessage, RString sID )
}
}

Dialog::Result DialogDriver_MacOSX::YesNo( RString sMessage, RString sID )
Dialog::Result DialogDriver_MacOSX::YesNo( const RString &sMessage, const RString &sID )
{
CFBundleRef bundle = CFBundleGetMainBundle();
CFStringRef sYes = LSTRING( bundle, "Yes" );
Expand Down
12 changes: 6 additions & 6 deletions src/arch/Dialog/DialogDriver_MacOSX.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
class DialogDriver_MacOSX: public DialogDriver
{
public:
void Error( RString sError, RString sID );
void OK( RString sMessage, RString sID );
Dialog::Result OKCancel( RString sMessage, RString sID );
Dialog::Result AbortRetryIgnore( RString sMessage, RString sID );
Dialog::Result AbortRetry( RString sMessage, RString sID );
Dialog::Result YesNo( RString sMessage, RString sID );
void Error( const RString &sError, const RString &sID );
void OK( const RString &sMessage, const RString &sID );
Dialog::Result OKCancel( const RString &sMessage, const RString &sID );
Dialog::Result AbortRetryIgnore( const RString &sMessage, const RString &sID );
Dialog::Result AbortRetry( const RString &sMessage, const RString &sID );
Dialog::Result YesNo( const RString &sMessage, const RString &sID );
};
#define USE_DIALOG_DRIVER_COCOA

Expand Down
2 changes: 1 addition & 1 deletion src/arch/LoadingWindow/LoadingWindow_Gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ LoadingWindow_Gtk::~LoadingWindow_Gtk()
Handle = NULL;
}

void LoadingWindow_Gtk::SetText( RString s )
void LoadingWindow_Gtk::SetText( const RString &s )
{
Module_SetText( s );
}
Expand Down
2 changes: 1 addition & 1 deletion src/arch/LoadingWindow/LoadingWindow_MacOSX.mm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (void) setIndeterminate:(NSNumber *)indeterminate
[pool release];
}

void LoadingWindow_MacOSX::SetText( RString str )
void LoadingWindow_MacOSX::SetText( const RString &str )
{
if( !g_Helper )
return;
Expand Down
2 changes: 1 addition & 1 deletion src/arch/LowLevelWindow/LowLevelWindow_MacOSX.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LowLevelWindow_MacOSX : public LowLevelWindow
public:
LowLevelWindow_MacOSX();
~LowLevelWindow_MacOSX();
void *GetProcAddress( RString s );
void *GetProcAddress( const RString &s );
RString TryVideoMode( const VideoModeParams& p, bool& newDeviceOut );
void GetDisplayResolutions( DisplayResolutions &dr ) const;

Expand Down
2 changes: 1 addition & 1 deletion src/arch/LowLevelWindow/LowLevelWindow_MacOSX.mm
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ - (void) setParams:(NSValue *)params
[m_WindowDelegate release];
}

void *LowLevelWindow_MacOSX::GetProcAddress( RString s )
void *LowLevelWindow_MacOSX::GetProcAddress( const RString &s )
{
// http://developer.apple.com/qa/qa2001/qa1188.html
// Both functions mentioned in there are deprecated in 10.4.
Expand Down
2 changes: 1 addition & 1 deletion src/arch/LowLevelWindow/LowLevelWindow_X11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ LowLevelWindow_X11::~LowLevelWindow_X11()
CloseXConnection();
}

void *LowLevelWindow_X11::GetProcAddress( RString s )
void *LowLevelWindow_X11::GetProcAddress( const RString &s )
{
// XXX: We should check whether glXGetProcAddress or
// glXGetProcAddressARB is available/not NULL, and go by that,
Expand Down
2 changes: 1 addition & 1 deletion src/arch/LowLevelWindow/LowLevelWindow_X11.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LowLevelWindow_X11 : public LowLevelWindow
LowLevelWindow_X11();
~LowLevelWindow_X11();

void *GetProcAddress(RString s);
void *GetProcAddress(const RString &s);
RString TryVideoMode(const VideoModeParams &p, bool &bNewDeviceOut);
void LogDebugInformation() const;
bool IsSoftwareRenderer( RString &sError );
Expand Down

0 comments on commit 3ef472b

Please sign in to comment.