summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-23 11:46:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-23 21:52:30 +0100
commitd1016591f42b47ea52d96ce9f09ed01749b97d77 (patch)
tree0bbb9fb48790d2679e2855fdfe2f010836ce9d52 /sc
parenta886fbfb54b1b770e57862a4ce58f99dbdb368fa (diff)
Use a more conventional way of clearing ScRange variables
...to avoid upcoming GCC 8 -Werror=class-memaccess ("clearing an object of type ‘class ScRange’ with no trivial copy-assignment") Change-Id: I2178697082b1c284d26cedaa64c73b92d9e6aecb Reviewed-on: https://gerrit.libreoffice.org/48393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/pagepar.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/core/data/pagepar.cxx b/sc/source/core/data/pagepar.cxx
index 97d0d03eb54a..9853e4ac52a5 100644
--- a/sc/source/core/data/pagepar.cxx
+++ b/sc/source/core/data/pagepar.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <string.h>
-
#include <pagepar.hxx>
// struct ScPageTableParam:
@@ -59,9 +57,9 @@ void ScPageAreaParam::Reset()
{
bPrintArea = bRepeatRow = bRepeatCol = false;
- memset( &aPrintArea, 0, sizeof(ScRange) );
- memset( &aRepeatRow, 0, sizeof(ScRange) );
- memset( &aRepeatCol, 0, sizeof(ScRange) );
+ aPrintArea = ScRange();
+ aRepeatRow = ScRange();
+ aRepeatCol = ScRange();
}