summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-16 10:43:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-16 14:08:11 +0100
commitfa709289806801b04f34fb780b655e29fe193959 (patch)
treee30bfad21e81a430c6d99a87425a33407da75b90
parent59bdafe4c8faecfadde11ecdd5904e655918160a (diff)
this is assigned back to a sal_Int8 anyway
Change-Id: I3b1a4b30da3c538e347758e01dbe2f1cecc4a0e7
-rw-r--r--sfx2/source/doc/guisaveas.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 3d98457917f2..306202fd1529 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -147,9 +147,9 @@ static sal_uInt16 getSlotIDFromMode( sal_Int8 nStoreMode )
}
-static sal_uInt8 getStoreModeFromSlotName( const OUString& aSlotName )
+static sal_Int8 getStoreModeFromSlotName( const OUString& aSlotName )
{
- sal_uInt8 nResult = 0;
+ sal_Int8 nResult = 0;
if ( aSlotName == "ExportTo" )
nResult = EXPORT_REQUESTED;
else if ( aSlotName == "ExportToPDF" )
@@ -161,7 +161,7 @@ static sal_uInt8 getStoreModeFromSlotName( const OUString& aSlotName )
else if ( aSlotName == "SaveAs" )
nResult = SAVEAS_REQUESTED;
else if ( aSlotName == "SaveAsRemote" )
- nResult = static_cast<sal_uInt8>(SAVEASREMOTE_REQUESTED);
+ nResult = SAVEASREMOTE_REQUESTED;
else
throw task::ErrorCodeIOException(
("getStoreModeFromSlotName(\"" + aSlotName