summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:19:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:49 +0200
commit67187c14175778b7939692d6be6e8bab2930be1b (patch)
tree4de0a861cf58fe5ce82fa9c915b0b73ff73aad89 /sc/source/ui/docshell
parent607b6ced16e840dc860bbd3ea934816b6e1c6680 (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I9b99327d58a63dfa5c292784cefb4894ee6d7fa8
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docsh.cxx8
-rw-r--r--sc/source/ui/docshell/docsh4.cxx14
2 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index c3bb306c66da..e09ca84a941d 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -781,7 +781,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
if ( xStorable->isReadonly() )
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
OUString aUserName( ScGlobal::GetRscString( STR_UNKNOWN_USER ) );
bool bNoLockAccess = false;
@@ -830,7 +830,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
}
// close shared file
- xCloseable->close( sal_True );
+ xCloseable->close( true );
// TODO: keep file lock on shared file
@@ -879,7 +879,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
}
else
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
if ( bEntriesNotAccessible )
{
@@ -908,7 +908,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
try
{
uno::Reference< util::XCloseable > xClose( xModel, uno::UNO_QUERY_THROW );
- xClose->close( sal_True );
+ xClose->close( true );
}
catch ( uno::Exception& )
{
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 44983e8ba3df..b667891759fc 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1005,7 +1005,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
uno::Reference< frame::XStorable > xStorable( xModel, uno::UNO_QUERY_THROW );
if ( xStorable->isReadonly() )
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
OUString aUserName( ScGlobal::GetRscString( STR_UNKNOWN_USER ) );
try
@@ -1038,7 +1038,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
ScGlobal::GetRscString( STR_DOC_DISABLESHARED ) );
if ( aBox->Execute() == RET_YES )
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
if ( !SwitchToShared( false, true ) )
{
@@ -1061,13 +1061,13 @@ void ScDocShell::Execute( SfxRequest& rReq )
}
else
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
}
}
}
else
{
- xCloseable->close( sal_True );
+ xCloseable->close( true );
ScopedVclPtrInstance<WarningBox> aBox( GetActiveDialogParent(), WinBits( WB_OK ),
ScGlobal::GetRscString( STR_DOC_NOLONGERSHARED ) );
aBox->Execute();
@@ -1081,7 +1081,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
try
{
uno::Reference< util::XCloseable > xClose( xModel, uno::UNO_QUERY_THROW );
- xClose->close( sal_True );
+ xClose->close( true );
}
catch ( uno::Exception& )
{
@@ -2368,7 +2368,7 @@ uno::Reference< frame::XModel > ScDocShell::LoadSharedDocument()
uno::Reference< frame::XDesktop2 > xLoader = frame::Desktop::create( ::comphelper::getProcessComponentContext() );
uno::Sequence < beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = "Hidden";
- aArgs[0].Value <<= sal_True;
+ aArgs[0].Value <<= true;
if ( GetMedium() )
{
@@ -2393,7 +2393,7 @@ uno::Reference< frame::XModel > ScDocShell::LoadSharedDocument()
try
{
uno::Reference< util::XCloseable > xClose( xModel, uno::UNO_QUERY_THROW );
- xClose->close( sal_True );
+ xClose->close( true );
return uno::Reference< frame::XModel >();
}
catch ( uno::Exception& )