summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-29 23:57:38 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-06-30 04:58:49 +0000
commit710f41b7aec8e7d35a0da8be332aa289f98942af (patch)
treeb894ef2d3f06a63a85f423b2713a654ea57f9c69 /svtools
parent1ca3beae12a7f222c987481e07a544845fc9fd46 (diff)
Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/ehdl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index e6a9eff4184a..b64901d3cc31 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -164,7 +164,7 @@ SfxErrorHandler::~SfxErrorHandler()
//-------------------------------------------------------------------------
-sal_Bool SfxErrorHandler::CreateString(
+bool SfxErrorHandler::CreateString(
const ErrorInfo *pErr, OUString &rStr, sal_uInt16& nFlags) const
/* [Beschreibung]
@@ -176,14 +176,14 @@ sal_Bool SfxErrorHandler::CreateString(
{
sal_uLong nErrCode = pErr->GetErrorCode() & ERRCODE_ERROR_MASK;
if( nErrCode>=lEnd || nErrCode<=lStart )
- return sal_False;
+ return false;
MessageInfo *pMsgInfo=PTR_CAST(MessageInfo,pErr);
if(pMsgInfo)
{
if(GetMessageString(nErrCode, rStr, nFlags))
{
rStr = rStr.replaceAll("$(ARG1)", pMsgInfo->GetMessageArg());
- return sal_True;
+ return true;
}
}
else if(GetErrorString(nErrCode, rStr, nFlags))
@@ -204,9 +204,9 @@ sal_Bool SfxErrorHandler::CreateString(
rStr = rStr.replaceAll("$(ARG2)", pTwoStringInfo->GetArg2());
}
}
- return sal_True;
+ return true;
}
- return sal_False;
+ return false;
}
//-------------------------------------------------------------------------
@@ -393,7 +393,7 @@ SfxErrorContext::SfxErrorContext(
//-------------------------------------------------------------------------
-sal_Bool SfxErrorContext::GetString(sal_uLong nErrId, OUString &rStr)
+bool SfxErrorContext::GetString(sal_uLong nErrId, OUString &rStr)
/* [Beschreibung]