diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-17 21:31:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-18 09:32:39 +0100 |
commit | 60c8704cf42ed24f3b8f3e698fd3072b82270af5 (patch) | |
tree | 5becab6bb3e799277a2e340e200a281f4a6351f9 /tools | |
parent | 5f78d62051d720552088895ac94fb02a06cf6e22 (diff) |
coverity#1358589 Uninitialized scalar field
Change-Id: I072dc4a54949fb3186be4a41e8865bdf0794297a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/fract.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx index b6e8135f9b86..12530c7f7d42 100644 --- a/tools/source/generic/fract.cxx +++ b/tools/source/generic/fract.cxx @@ -42,7 +42,10 @@ struct Fraction::Impl bool valid; boost::rational<sal_Int64> value; - Impl() = default; + Impl() + : valid(false) + { + } Impl(const Impl&) = delete; Impl& operator=(const Impl&) = delete; }; |