summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:03:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 13:20:12 +0200
commit720af01132d9e623389b82b5251c1687240d3569 (patch)
tree615a36015f2b67908ac90f930ed811f4f0d7d537 /basic
parent4da2ad58a6460cec4324431f0bf301de1603b748 (diff)
Avoid loplugin:data (clang-cl)
Change-Id: If10e70b30313509988861ee5200f08f2b83a647b Reviewed-on: https://gerrit.libreoffice.org/79918 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/dllmgr-x64.cxx94
1 files changed, 50 insertions, 44 deletions
diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx
index a56aeee2726a..c35046a89752 100644
--- a/basic/source/runtime/dllmgr-x64.cxx
+++ b/basic/source/runtime/dllmgr-x64.cxx
@@ -524,52 +524,58 @@ ErrCode call(
case SbxOBJECT:
case SbxBOOL:
case SbxBYTE:
- iRetVal =
- proc_i(*reinterpret_cast<double *>(&stack[0]),
- *reinterpret_cast<double *>(&stack[1*8]),
- *reinterpret_cast<double *>(&stack[2*8]),
- *reinterpret_cast<double *>(&stack[3*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[4*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[5*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[6*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[7*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[8*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[9*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[10*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[11*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[12*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[13*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[14*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[15*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[16*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[17*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[18*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[19*8]));
- break;
+ {
+ auto const st = stack.data();
+ iRetVal =
+ proc_i(*reinterpret_cast<double *>(st + 0),
+ *reinterpret_cast<double *>(st + 1*8),
+ *reinterpret_cast<double *>(st + 2*8),
+ *reinterpret_cast<double *>(st + 3*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 4*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 5*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 6*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 7*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 8*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 9*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 10*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 11*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 12*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 13*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 14*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 15*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 16*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 17*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 18*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 19*8));
+ break;
+ }
case SbxSINGLE:
case SbxDOUBLE:
- dRetVal =
- proc_d(*reinterpret_cast<double *>(&stack[0]),
- *reinterpret_cast<double *>(&stack[1*8]),
- *reinterpret_cast<double *>(&stack[2*8]),
- *reinterpret_cast<double *>(&stack[3*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[4*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[5*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[6*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[7*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[8*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[9*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[10*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[11*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[12*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[13*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[14*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[15*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[16*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[17*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[18*8]),
- *reinterpret_cast<sal_uInt64 *>(&stack[19*8]));
- break;
+ {
+ auto const st = stack.data();
+ dRetVal =
+ proc_d(*reinterpret_cast<double *>(st + 0),
+ *reinterpret_cast<double *>(st + 1*8),
+ *reinterpret_cast<double *>(st + 2*8),
+ *reinterpret_cast<double *>(st + 3*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 4*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 5*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 6*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 7*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 8*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 9*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 10*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 11*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 12*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 13*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 14*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 15*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 16*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 17*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 18*8),
+ *reinterpret_cast<sal_uInt64 *>(st + 19*8));
+ break;
+ }
default:
break;
}