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:
Stephan Aßmus 2011-02-19 10:46:30 +00:00
parent 7b820451e9
commit 3b693801a9
2 changed files with 7 additions and 6 deletions

View File

@ -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;
}

View File

@ -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();