summaryrefslogtreecommitdiff
path: root/sw/inc/authfld.hxx
diff options
context:
space:
mode:
authorHonza Havlíček <havlicek.honza@gmail.com>2013-07-27 03:14:27 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-07-30 13:45:03 +0000
commitd7b48d03e19d2c05ecf2143b1547ceab5ab89e5c (patch)
tree3a5b49e0f660c3e99321cd268eae1bec68b3a855 /sw/inc/authfld.hxx
parent5f7860bc2735bad3cd27552867ce25096835dcbb (diff)
fdo#43157 - Clean up OSL_ENSURE
Change-Id: I5ba15eaa82479aa68b98ce4dcd7827f31b239c98 Reviewed-on: https://gerrit.libreoffice.org/5139 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sw/inc/authfld.hxx')
-rw-r--r--sw/inc/authfld.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx
index 516120b0b4ef..e38532936967 100644
--- a/sw/inc/authfld.hxx
+++ b/sw/inc/authfld.hxx
@@ -170,12 +170,12 @@ public:
// --- inlines -----------------------------------------------------------
inline OUString SwAuthEntry::GetAuthorField(ToxAuthorityField ePos) const
{
- OSL_ENSURE(AUTH_FIELD_END > ePos, "wrong index");
+ SAL_WARN_IF(AUTH_FIELD_END <= ePos, "sw", "wrong index");
return aAuthFields[ePos];
}
inline void SwAuthEntry::SetAuthorField(ToxAuthorityField ePos, const OUString& rField)
{
- OSL_ENSURE(AUTH_FIELD_END > ePos, "wrong index");
+ SAL_WARN_IF(AUTH_FIELD_END <= ePos, "sw", "wrong index");
if(AUTH_FIELD_END > ePos)
aAuthFields[ePos] = rField;
}