bEncodedFilter is always false
Change-Id: I1b959ce8f46f45a789bb7d493c371677ba775f3b
This commit is contained in:
parent
e59b69010c
commit
d9cfbabc7f
@ -96,7 +96,7 @@ public:
|
||||
static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
|
||||
|
||||
static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
|
||||
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
|
||||
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd=nullptr );
|
||||
|
||||
static const OUString GetSubStorageName( const SfxFilter& rFltr );
|
||||
};
|
||||
|
@ -234,7 +234,7 @@ std::shared_ptr<const SfxFilter> SwIoSystem::GetFileFilter(const OUString& rFile
|
||||
}
|
||||
|
||||
bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, sal_uLong &rLen,
|
||||
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool bEncodedFilter)
|
||||
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd)
|
||||
{
|
||||
bool bSwap = false;
|
||||
rtl_TextEncoding eCharSet = RTL_TEXTENCODING_DONTKNOW;
|
||||
@ -369,7 +369,7 @@ bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, sal_uLong &rLen,
|
||||
if (pLineEnd)
|
||||
*pLineEnd = eLineEnd;
|
||||
|
||||
return bEncodedFilter || (!bIsBareUnicode && eSysLE == eLineEnd);
|
||||
return !bIsBareUnicode && eSysLE == eLineEnd;
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Loading…
x
Reference in New Issue
Block a user