[Libreoffice-commits] core.git: svtools/source
Stephan Bergmann
sbergman at redhat.com
Wed Feb 8 16:27:27 UTC 2017
svtools/source/misc/ehdl.cxx | 24 ------------------------
1 file changed, 24 deletions(-)
New commits:
commit 0eed6c98cac8b6d982ab595e6e8a2ee079d88389
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Feb 8 17:27:02 2017 +0100
loplugin:unreffun
Change-Id: I7cd699632b05ac8de6c5e3a6dbc66b8de7d88054
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index 16503aa..b1a29dd 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -195,30 +195,6 @@ bool SfxErrorHandler::CreateString(const ErrorInfo *pErr, OUString &rStr) const
return false;
}
-class ResString: public OUString
-/* [Description]
-
- Helpclass to read a string and optional ExtraData from
- a string Resource.
-
- */
-{
- public:
- const OUString & GetString() const {return *this;}
- explicit ResString( ResId &rId);
-};
-
-ResString::ResString(ResId & rId)
- : OUString(rId.SetAutoRelease(false).toString())
-{
- ResMgr * pResMgr = rId.GetResMgr();
- // String ctor temporarily sets global ResManager
- if (pResMgr->GetRemainSize())
- (void)pResMgr->ReadShort();
- rId.SetAutoRelease(true);
- pResMgr->PopContext();
-}
-
void SfxErrorHandler::GetClassString(sal_uLong lClassId, OUString &rStr)
/* [Description]
More information about the Libreoffice-commits
mailing list