diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-03 11:00:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-03 11:04:25 +0000 |
commit | d68927c7fd4346311dce58e6059186633996d68b (patch) | |
tree | e646bb3046cd3acf6285a0d6a96d3997b982966f /uui/source | |
parent | 5d0e485e827057eee9fb2c997685690b710e7f34 (diff) |
use actual UNO enums in test..vbahelper
Change-Id: I2e38462045efedc31903589a3fa4e6f62d74d8de
Reviewed-on: https://gerrit.libreoffice.org/36042
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui/source')
-rw-r--r-- | uui/source/iahndl-authentication.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl-ioexceptions.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx index 3701f73886c7..21506c18134e 100644 --- a/uui/source/iahndl-authentication.cxx +++ b/uui/source/iahndl-authentication.cxx @@ -160,7 +160,7 @@ void getRememberModes( bHasRememberModePersistent = true; break; default: - SAL_WARN( "uui", "Unsupported RememberAuthentication value" << rRememberModes[i] ); + SAL_WARN( "uui", "Unsupported RememberAuthentication value" << (sal_Int32)rRememberModes[i] ); break; } } diff --git a/uui/source/iahndl-ioexceptions.cxx b/uui/source/iahndl-ioexceptions.cxx index 9da345ff1ed6..15db83ee26ec 100644 --- a/uui/source/iahndl-ioexceptions.cxx +++ b/uui/source/iahndl-ioexceptions.cxx @@ -109,7 +109,7 @@ UUIInteractionHelper::handleInteractiveIOException( ErrCode nErrorCode; std::vector< OUString > aArguments; static ErrCode const - aErrorCode[ucb::IOErrorCode_WRONG_VERSION + 1][2] + aErrorCode[(sal_Int32)ucb::IOErrorCode_WRONG_VERSION + 1][2] = { { ERRCODE_IO_ABORT, ERRCODE_UUI_IO_ABORT }, // ABORT { ERRCODE_IO_ACCESSDENIED, ERRCODE_UUI_IO_ACCESSDENIED }, // ACCESS_DENIED @@ -201,7 +201,7 @@ UUIInteractionHelper::handleInteractiveIOException( } } else - nErrorCode = aErrorCode[aIoException.Code][0]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; break; } @@ -225,7 +225,7 @@ UUIInteractionHelper::handleInteractiveIOException( aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[aIoException.Code][0]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; break; } @@ -237,13 +237,13 @@ UUIInteractionHelper::handleInteractiveIOException( && getStringRequestArgument(aRequestArguments, "OtherVolume", &aArgOtherVolume)) { - nErrorCode = aErrorCode[aIoException.Code][1]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][1]; aArguments.reserve(2); aArguments.push_back(aArgVolume); aArguments.push_back(aArgOtherVolume); } else - nErrorCode = aErrorCode[aIoException.Code][0]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; break; } @@ -264,7 +264,7 @@ UUIInteractionHelper::handleInteractiveIOException( aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[aIoException.Code][0]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; break; } @@ -274,11 +274,11 @@ UUIInteractionHelper::handleInteractiveIOException( if (getResourceNameRequestArgument(aRequestArguments, &aArgUri)) { - nErrorCode = aErrorCode[aIoException.Code][1]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][1]; aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[aIoException.Code][0]; + nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; break; } } |