Small cleanups, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40555 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7b820451e9
commit
3b693801a9
@ -178,9 +178,10 @@ ShowImageApp::QuitRequested()
|
||||
{
|
||||
// Give the windows a chance to prompt the user if there are changes
|
||||
bool result = BApplication::QuitRequested();
|
||||
if (result)
|
||||
if (result) {
|
||||
be_clipboard->StopWatching(be_app_messenger);
|
||||
// tell clipboard we don't want anymore notification
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -200,7 +201,7 @@ ShowImageApp::_StartPulse()
|
||||
|
||||
|
||||
void
|
||||
ShowImageApp::_Open(const entry_ref& ref, BMessenger& trackerMessenger)
|
||||
ShowImageApp::_Open(const entry_ref& ref, const BMessenger& trackerMessenger)
|
||||
{
|
||||
new ShowImageWindow(ref, trackerMessenger);
|
||||
}
|
||||
@ -248,10 +249,10 @@ ShowImageApp::_CheckClipboard()
|
||||
|
||||
|
||||
int
|
||||
main(int, char **)
|
||||
main(int, char**)
|
||||
{
|
||||
ShowImageApp theApp;
|
||||
theApp.Run();
|
||||
ShowImageApp app;
|
||||
app.Run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
private:
|
||||
void _StartPulse();
|
||||
void _Open(const entry_ref& ref,
|
||||
BMessenger& trackerMessenger);
|
||||
const BMessenger& trackerMessenger);
|
||||
void _BroadcastToWindows(BMessage* message);
|
||||
void _CheckClipboard();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user