diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 09:31:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 09:31:58 +0100 |
commit | 0d0fd7b4fbc6090fe7112eef8b2b07840cf8a89d (patch) | |
tree | 5325634108de1bc065273fb7d1cd3d57a4ef675e /sw/source/ui/app/docsh2.cxx | |
parent | 06272f678b54e99757c89419acfdc9217c88abd7 (diff) |
PrepareClose should probably return bool
Change-Id: Ie62a6c1197594102bc68e246ae6059a9442ce314
Diffstat (limited to 'sw/source/ui/app/docsh2.cxx')
-rw-r--r-- | sw/source/ui/app/docsh2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index 6ae5687b553e..7a6bfc8be239 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -303,11 +303,11 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) } // Notification Close Doc -sal_uInt16 SwDocShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing ) +bool SwDocShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing ) { - sal_uInt16 nRet = SfxObjectShell::PrepareClose( bUI, bForBrowsing ); + bool nRet = SfxObjectShell::PrepareClose( bUI, bForBrowsing ); - if( sal_True == nRet ) + if( nRet ) EndListening( *this ); if( pDoc && IsInPrepareClose() ) |