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:
@ -42,7 +42,7 @@ CDjVuFile::~CDjVuFile()
|
||||
delete m_pImplementation;
|
||||
}
|
||||
bool CDjVuFile::LoadFromFile(const std::wstring& file, const std::wstring& options,
|
||||
const std::wstring& owner_password, const std::wstring& user_password)
|
||||
const wchar_t* owner_password, const wchar_t* user_password)
|
||||
{
|
||||
if (m_pImplementation)
|
||||
return m_pImplementation->LoadFromFile(file, options);
|
||||
@ -50,7 +50,7 @@ bool CDjVuFile::LoadFromFile(const std::wstring& file, const std::wstring& optio
|
||||
return false;
|
||||
}
|
||||
bool CDjVuFile::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)
|
||||
{
|
||||
if (m_pImplementation)
|
||||
return m_pImplementation->LoadFromMemory(data, length, options);
|
||||
|
||||
@ -55,9 +55,9 @@ public:
|
||||
virtual ~CDjVuFile();
|
||||
|
||||
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