Kaydet (Commit) d1016591 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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/48393Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst a886fbfb
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <string.h>
#include <pagepar.hxx> #include <pagepar.hxx>
// struct ScPageTableParam: // struct ScPageTableParam:
...@@ -59,9 +57,9 @@ void ScPageAreaParam::Reset() ...@@ -59,9 +57,9 @@ void ScPageAreaParam::Reset()
{ {
bPrintArea = bRepeatRow = bRepeatCol = false; bPrintArea = bRepeatRow = bRepeatCol = false;
memset( &aPrintArea, 0, sizeof(ScRange) ); aPrintArea = ScRange();
memset( &aRepeatRow, 0, sizeof(ScRange) ); aRepeatRow = ScRange();
memset( &aRepeatCol, 0, sizeof(ScRange) ); aRepeatCol = ScRange();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment