mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Password NULL and empty
This commit is contained in:
@ -104,7 +104,7 @@ void CXpsFile::SetTempDirectory(const std::wstring& wsPath)
|
||||
m_pInternal->m_wsTempFolder = new CFolderSystem(wsTempFolder);
|
||||
}
|
||||
bool CXpsFile::LoadFromFile(const std::wstring& wsSrcFileName, const std::wstring& wsXmlOptions,
|
||||
const std::wstring& owner_password, const std::wstring& user_password)
|
||||
const wchar_t* owner_password, const wchar_t* user_password)
|
||||
{
|
||||
Close();
|
||||
|
||||
@ -122,7 +122,7 @@ bool CXpsFile::LoadFromFile(const std::wstring& wsSrcFileName, const std::wstrin
|
||||
return true;
|
||||
}
|
||||
bool CXpsFile::LoadFromMemory(BYTE* data, DWORD length, const std::wstring& options,
|
||||
const std::wstring& owner_password, const std::wstring& user_password)
|
||||
const wchar_t* owner_password, const wchar_t* user_password)
|
||||
{
|
||||
Close();
|
||||
|
||||
|
||||
@ -50,9 +50,9 @@ public:
|
||||
virtual ~CXpsFile();
|
||||
|
||||
virtual bool LoadFromFile(const std::wstring& file, const std::wstring& options = L"",
|
||||
const std::wstring& owner_password = L"", const std::wstring& user_password = L"");
|
||||
const wchar_t* owner_password = NULL, const wchar_t* user_password = NULL);
|
||||
virtual bool LoadFromMemory(BYTE* data, DWORD length, const std::wstring& options = L"",
|
||||
const std::wstring& owner_password = L"", const std::wstring& user_password = L"");
|
||||
const wchar_t* owner_password = NULL, const wchar_t* user_password = NULL);
|
||||
|
||||
virtual void Close();
|
||||
virtual NSFonts::IApplicationFonts* GetFonts();
|
||||
|
||||
Reference in New Issue
Block a user