launch linux

This commit is contained in:
SalnikovDE
2021-06-28 18:39:06 +03:00
parent 3a9cf26462
commit 09d6d280a5
3 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,7 @@ namespace PdfReader
m_pInternal->m_pFontManager = NULL;
m_pInternal->m_pGlobalParams = new GlobalParamsAdaptor(NULL);
globalParams = m_pInternal->m_pGlobalParams;
m_pInternal->m_pFontList = new CFontList();
m_pInternal->m_pAppFonts = pAppFonts;

View File

@ -6,12 +6,14 @@
#include <codecvt>
StringAdaptor::StringAdaptor(const std::string &s) {
w_str = nullptr;
str = new char[s.length() + 1];
std::strcpy(str, s.c_str());
update_wstr();
}
StringAdaptor::StringAdaptor(const std::wstring &s) {
str = nullptr;
w_str = new wchar_t[s.length() + 1];
std::wcscpy(w_str, s.c_str());
update_str();

View File

@ -18,8 +18,15 @@ HEADERS += \
FORMS += \
mainwindow.ui
INCLUDEPATH += \
$$PWD/../../lib/goo \
$$PWD/../../lib/fofi \
$$PWD/../../lib/splash \
$$PWD/../../lib
PWD_ROOT_DIR = $$PWD
CORE_ROOT_DIR = $$PWD/../../../../core
include($$CORE_ROOT_DIR/Common/base.pri)