summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 10:22:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 12:11:43 +0000
commitf8c1bc4ac38d497f7a7a65e79b99252e45c2e39f (patch)
tree6c6df3bd2b14d1b9598cce448232fe93d47eea82 /i18npool
parent110c193988a13541c165b126784ec2369ddf4f8c (diff)
coverity#707925 Uninitialized pointer field
Change-Id: I0e1034a2ef064f9a3a05a0b8837efdff767ea715
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/inc/inputsequencechecker.hxx6
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker.cxx4
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker_hi.cxx2
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker_th.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx
index e2ed6b2629ba..47e6276a0ba3 100644
--- a/i18npool/inc/inputsequencechecker.hxx
+++ b/i18npool/inc/inputsequencechecker.hxx
@@ -40,7 +40,7 @@ class InputSequenceCheckerImpl : public cppu::WeakImplHelper2
{
public:
InputSequenceCheckerImpl( const com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext >& rxContext );
- InputSequenceCheckerImpl();
+ InputSequenceCheckerImpl(const char *pServiceName);
~InputSequenceCheckerImpl();
virtual sal_Bool SAL_CALL checkInputSequence(const OUString& Text, sal_Int32 nStartPos,
@@ -56,11 +56,9 @@ public:
virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
-protected:
- sal_Int16 checkMode;
+private :
const sal_Char *serviceName;
-private :
struct lookupTableItem {
lookupTableItem(const sal_Char* rLanguage, const com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedInputSequenceChecker >& rxISC) :
aLanguage(rLanguage), xISC(rxISC) {}
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx
index d5f264fe8a35..4dea3d63c189 100644
--- a/i18npool/source/inputchecker/inputsequencechecker.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker.cxx
@@ -36,7 +36,9 @@ InputSequenceCheckerImpl::InputSequenceCheckerImpl( const Reference < XComponent
cachedItem = NULL;
}
-InputSequenceCheckerImpl::InputSequenceCheckerImpl()
+InputSequenceCheckerImpl::InputSequenceCheckerImpl(const char *pServiceName)
+ : serviceName(pServiceName)
+ , cachedItem(NULL)
{
}
diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
index 9c7cd94c8cc4..6b68e53433b3 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
@@ -27,8 +27,8 @@ namespace star {
namespace i18n {
InputSequenceChecker_hi::InputSequenceChecker_hi()
+ : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_hi")
{
- serviceName = "com.sun.star.i18n.InputSequenceChecker_hi";
}
InputSequenceChecker_hi::~InputSequenceChecker_hi()
diff --git a/i18npool/source/inputchecker/inputsequencechecker_th.cxx b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
index 488145573cac..fb90630e28f6 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_th.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
@@ -25,8 +25,8 @@
namespace com { namespace sun { namespace star { namespace i18n {
InputSequenceChecker_th::InputSequenceChecker_th()
+ : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_th")
{
- serviceName = "com.sun.star.i18n.InputSequenceChecker_th";
}
InputSequenceChecker_th::~InputSequenceChecker_th()