summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authortobias <tobias.schulz@hotmail.com>2021-06-06 15:47:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-06 18:52:52 +0200
commit162f5a20095c6937030d23ee03fb8f72c51eefa1 (patch)
tree5113e0775353231d359b8cd0d19a6425c7da3d9c /sw/inc
parent89aaa17a0a4413f07da2bc5084b0164f15dc01ac (diff)
tdf#142669 Consider BOM on text encoding detection
Return a flag if the auto detected text has a BOM. Save the flag in SwAsciiOptions so that BOM gets set correctly when file is written. Change-Id: I358c3ba243bc326a552c2dc24773c94f8319c700 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116759 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/iodetect.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index 534b3c1f2bb5..1d5713aaccab 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -104,7 +104,7 @@ public:
static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
static bool IsDetectableText( const char* pBuf, sal_uLong &rLen,
- rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd );
+ rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool *pBom);
static OUString GetSubStorageName( const SfxFilter& rFltr );
};