summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-04-15 19:38:53 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-04-25 10:57:29 +0200
commit437a5d7c72547f6f17b4ffecd51e76a2487de99e (patch)
tree4251ef454552fd3241f49deaaf06e967ad727910 /vcl
parent3b85b72d643e26fd9fda5eeb05f774b3c37917fd (diff)
tdf#75280: convert sal_uIntPtr to sal_uInt32 for ErrorInfo member
Change-Id: I97f3b18604f17b0ccc9fd1bbb0221ff5e11fe826 Reviewed-on: https://gerrit.libreoffice.org/36840 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/errinf.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/window/errinf.cxx b/vcl/source/window/errinf.cxx
index cfe44da63c2f..af9a68010de8 100644
--- a/vcl/source/window/errinf.cxx
+++ b/vcl/source/window/errinf.cxx
@@ -52,7 +52,7 @@ class DynamicErrorInfo_Impl
void RegisterEDcr(DynamicErrorInfo *);
static void UnRegisterEDcr(DynamicErrorInfo const *);
- static ErrorInfo* GetDynamicErrorInfo(sal_uIntPtr lId);
+ static ErrorInfo* GetDynamicErrorInfo(sal_uInt32 lId);
friend class DynamicErrorInfo;
friend class ErrorInfo;
@@ -97,7 +97,7 @@ ErrorInfo::~ErrorInfo()
}
-ErrorInfo *ErrorInfo::GetErrorInfo(sal_uIntPtr lId)
+ErrorInfo *ErrorInfo::GetErrorInfo(sal_uInt32 lId)
{
if(lId & ERRCODE_DYNAMIC_MASK)
return DynamicErrorInfo_Impl::GetDynamicErrorInfo(lId);
@@ -105,12 +105,12 @@ ErrorInfo *ErrorInfo::GetErrorInfo(sal_uIntPtr lId)
return new ErrorInfo(lId);
}
-DynamicErrorInfo::operator sal_uIntPtr() const
+DynamicErrorInfo::operator sal_uInt32() const
{
return pImpl->lErrId;
}
-DynamicErrorInfo::DynamicErrorInfo(sal_uIntPtr lArgUserId, ErrorHandlerFlags nMask)
+DynamicErrorInfo::DynamicErrorInfo(sal_uInt32 lArgUserId, ErrorHandlerFlags nMask)
: ErrorInfo(lArgUserId),
pImpl(new DynamicErrorInfo_Impl)
{
@@ -123,7 +123,7 @@ DynamicErrorInfo::~DynamicErrorInfo()
DynamicErrorInfo_Impl::UnRegisterEDcr(this);
}
-ErrorInfo* DynamicErrorInfo_Impl::GetDynamicErrorInfo(sal_uIntPtr lId)
+ErrorInfo* DynamicErrorInfo_Impl::GetDynamicErrorInfo(sal_uInt32 lId)
{
sal_uIntPtr lIdx = ((lId & ERRCODE_DYNAMIC_MASK)>>ERRCODE_DYNAMIC_SHIFT)-1;
DynamicErrorInfo* pDynErrInfo = TheErrorRegistry::get().ppDynErrInfo[lIdx];
@@ -139,7 +139,7 @@ ErrorHandlerFlags DynamicErrorInfo::GetDialogMask() const
}
StringErrorInfo::StringErrorInfo(
- sal_uIntPtr UserId, const OUString& aStringP, ErrorHandlerFlags nMask)
+ sal_uInt32 UserId, const OUString& aStringP, ErrorHandlerFlags nMask)
: DynamicErrorInfo(UserId, nMask), aString(aStringP)
{
}
@@ -236,7 +236,7 @@ void ErrorHandler::RegisterDisplay(BasicDisplayErrorFunc *aDsp)
@return ???
*/
ErrorHandlerFlags ErrorHandler::HandleError_Impl(
- sal_uIntPtr nErrCodeId, ErrorHandlerFlags nFlags, bool bJustCreateString, OUString & rError)
+ sal_uInt32 nErrCodeId, ErrorHandlerFlags nFlags, bool bJustCreateString, OUString & rError)
{
OUString aErr;
OUString aAction;
@@ -322,7 +322,7 @@ ErrorHandlerFlags ErrorHandler::HandleError_Impl(
}
// static
-bool ErrorHandler::GetErrorString(sal_uIntPtr lId, OUString& rStr)
+bool ErrorHandler::GetErrorString(sal_uInt32 lId, OUString& rStr)
{
return HandleError_Impl( lId, ErrorHandlerFlags::MAX, true, rStr ) != ErrorHandlerFlags::NONE;
}
@@ -331,7 +331,7 @@ bool ErrorHandler::GetErrorString(sal_uIntPtr lId, OUString& rStr)
@see ErrorHandler::HandleError_Impl
*/
-ErrorHandlerFlags ErrorHandler::HandleError(sal_uIntPtr lId, ErrorHandlerFlags nFlags)
+ErrorHandlerFlags ErrorHandler::HandleError(sal_uInt32 lId, ErrorHandlerFlags nFlags)
{
OUString aDummy;
return HandleError_Impl( lId, nFlags, false, aDummy );