From 7850e70d5e98bbfeb536d9644b618d0782da30a6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 26 Jun 2017 11:23:00 +0200 Subject: Write 0 of type 'unsigned char' regression introduced with ac2d415a52f22caf0012b7d9b17d015aca27db9d "loplugin:oncevar in sc" Change-Id: I1073e7e8b67ddf1dd633f004322c6bc46b9a8052 --- sc/source/filter/xcl97/xcl97rec.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx index 6f7a57db4967..93c9cf4f11ba 100644 --- a/sc/source/filter/xcl97/xcl97rec.cxx +++ b/sc/source/filter/xcl97/xcl97rec.cxx @@ -1587,7 +1587,7 @@ void XclExpSheetProtectOptions::WriteBody( XclExpStream& rStrm ) rStrm << nBytes; for (int i = 0; i < 9; ++i) - rStrm << sal_Int32(0); + rStrm << static_cast(0); nBytes = 0x0200; rStrm << nBytes; -- cgit