summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-02-18 01:05:18 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-02-18 02:55:13 -0600
commit313ea4b2c386d93c548442a8f14265a93a5819f1 (patch)
treedc116dbf52375746a1d687c7dd33899aad991895 /i18npool
parent0f9c938fa2bf11e031fb2f6d9beebfeda264bec6 (diff)
coverity#984096 Uninitialized scalar field
Change-Id: If67e1c48fba43fabcaffef92d96bc1377b4d1dd8
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/breakiterator_unicode.cxx24
1 files changed, 14 insertions, 10 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx
index e46dedc663d5..f0a6cb79e2d4 100644
--- a/i18npool/source/breakiterator/breakiterator_unicode.cxx
+++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -40,11 +40,12 @@ using namespace ::com::sun::star::lang;
namespace com { namespace sun { namespace star { namespace i18n {
-BreakIterator_Unicode::BreakIterator_Unicode() :
- cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ), // implementation name
- wordRule( "word" ),
- lineRule( "line" ),
- icuBI( NULL )
+BreakIterator_Unicode::BreakIterator_Unicode()
+ : cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ) // implementation name
+ , wordRule( "word" )
+ , lineRule( "line" )
+ , icuBI( NULL )
+ , aBreakType(0)
{
}
@@ -61,14 +62,17 @@ BreakIterator_Unicode::~BreakIterator_Unicode()
Wrapper class to provide public access to the RuleBasedBreakIterator's
setbreakType method.
*/
-class OOoRuleBasedBreakIterator : public RuleBasedBreakIterator {
+class OOoRuleBasedBreakIterator : public RuleBasedBreakIterator
+{
public:
- inline void publicSetBreakType(int32_t type) {
+ inline void publicSetBreakType(int32_t type)
+ {
setBreakType(type);
};
- OOoRuleBasedBreakIterator(UDataMemory* image,
- UErrorCode &status) :
- RuleBasedBreakIterator(image, status) { };
+ OOoRuleBasedBreakIterator(UDataMemory* image,
+ UErrorCode &status)
+ : RuleBasedBreakIterator(image, status)
+ { };
};