diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-04-15 19:38:53 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-04-25 10:57:29 +0200 |
commit | 437a5d7c72547f6f17b4ffecd51e76a2487de99e (patch) | |
tree | 4251ef454552fd3241f49deaaf06e967ad727910 /include | |
parent | 3b85b72d643e26fd9fda5eeb05f774b3c37917fd (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 'include')
-rw-r--r-- | include/svtools/ehdl.hxx | 2 | ||||
-rw-r--r-- | include/vcl/errinf.hxx | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/include/svtools/ehdl.hxx b/include/svtools/ehdl.hxx index 183121851e9c..681a22ac2872 100644 --- a/include/svtools/ehdl.hxx +++ b/include/svtools/ehdl.hxx @@ -39,7 +39,7 @@ public: SfxErrorContext( sal_uInt16 nCtxIdP, const OUString &aArg1, vcl::Window *pWin=nullptr, sal_uInt16 nResIdP=USHRT_MAX, ResMgr *pMgrP=nullptr); - bool GetString(sal_uLong nErrId, OUString &rStr) override; + bool GetString(sal_uInt32 nErrId, OUString &rStr) override; private: sal_uInt16 nCtxId; diff --git a/include/vcl/errinf.hxx b/include/vcl/errinf.hxx index 68e5f08e0840..f458ef6da474 100644 --- a/include/vcl/errinf.hxx +++ b/include/vcl/errinf.hxx @@ -65,17 +65,17 @@ namespace o3tl class SAL_WARN_UNUSED VCL_DLLPUBLIC ErrorInfo { private: - sal_uIntPtr lUserId; + sal_uInt32 lUserId; public: - ErrorInfo( sal_uIntPtr lArgUserId ) : + ErrorInfo( sal_uInt32 lArgUserId ) : lUserId( lArgUserId ){} virtual ~ErrorInfo(); - sal_uIntPtr GetErrorCode() const { return lUserId; } + sal_uInt32 GetErrorCode() const { return lUserId; } - static ErrorInfo* GetErrorInfo(sal_uIntPtr); + static ErrorInfo* GetErrorInfo(sal_uInt32); }; class SAL_WARN_UNUSED VCL_DLLPUBLIC DynamicErrorInfo : public ErrorInfo @@ -87,10 +87,10 @@ private: public: - DynamicErrorInfo(sal_uIntPtr lUserId, ErrorHandlerFlags nMask); + DynamicErrorInfo(sal_uInt32 lUserId, ErrorHandlerFlags nMask); virtual ~DynamicErrorInfo() override; - operator sal_uIntPtr() const; + operator sal_uInt32() const; ErrorHandlerFlags GetDialogMask() const; }; @@ -101,7 +101,7 @@ private: public: - StringErrorInfo( sal_uIntPtr lUserId, + StringErrorInfo( sal_uInt32 lUserId, const OUString& aStringP, ErrorHandlerFlags nMask = ErrorHandlerFlags::NONE); const OUString& GetErrorString() const { return aString; } @@ -115,7 +115,7 @@ private: public: - TwoStringErrorInfo(sal_uIntPtr nUserID, const OUString & rTheArg1, + TwoStringErrorInfo(sal_uInt32 nUserID, const OUString & rTheArg1, const OUString & rTheArg2, ErrorHandlerFlags nMask): DynamicErrorInfo(nUserID, nMask), aArg1(rTheArg1), aArg2(rTheArg2) {} @@ -135,7 +135,7 @@ public: ErrorContext(vcl::Window *pWin); virtual ~ErrorContext(); - virtual bool GetString( sal_uIntPtr nErrId, OUString& rCtxStr ) = 0; + virtual bool GetString( sal_uInt32 nErrId, OUString& rCtxStr ) = 0; vcl::Window* GetParent(); static ErrorContext* GetContext(); @@ -152,7 +152,7 @@ class SAL_WARN_UNUSED VCL_DLLPUBLIC ErrorHandler friend class ErrorHandler_Impl; private: - static ErrorHandlerFlags HandleError_Impl( sal_uIntPtr lId, + static ErrorHandlerFlags HandleError_Impl( sal_uInt32 lId, ErrorHandlerFlags nFlags, bool bJustCreateString, OUString & rError); @@ -163,8 +163,8 @@ public: ErrorHandler(); virtual ~ErrorHandler(); - static ErrorHandlerFlags HandleError ( sal_uIntPtr lId, ErrorHandlerFlags nMask = ErrorHandlerFlags::MAX ); - static bool GetErrorString( sal_uIntPtr lId, OUString& rStr ); + static ErrorHandlerFlags HandleError ( sal_uInt32 lId, ErrorHandlerFlags nMask = ErrorHandlerFlags::MAX ); + static bool GetErrorString( sal_uInt32 lId, OUString& rStr ); static void RegisterDisplay( BasicDisplayErrorFunc* ); static void RegisterDisplay( WindowDisplayErrorFunc* ); |