summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-13 10:27:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-29 08:18:35 +0200
commit71112060e0930fc58087c3762e836b1e12b60f75 (patch)
tree3bd54aa5b5864d9cd31d0aa3ec4080b46cf66a2d /tools
parentd6da9e495d7ca32de6cda1a94cb4c8cd26b240cc (diff)
loplugin:oncevar various
Change-Id: I8b82d46d4688b1a59d6fe1b05da7d5c8dfc13ca6 Reviewed-on: https://gerrit.libreoffice.org/38766 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index db90b56d41fe..cdfac8273470 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -734,8 +734,7 @@ void SvStream::StartWritingUnicodeText()
// BOM, Byte Order Mark, U+FEFF, see
// http://www.unicode.org/faq/utf_bom.html#BOM
// Upon read: 0xfeff(-257) => no swap; 0xfffe(-2) => swap
- sal_uInt16 v = 0xfeff;
- writeNumberWithoutSwap(v); // write native format
+ writeNumberWithoutSwap(sal_uInt16(0xfeff)); // write native format
}
void SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet )