Skip to content

Commit 2909b35

Browse files
committed
no RTTI & fix compile err when !USE_PLACES_FEATURE
1 parent 23212e1 commit 2909b35

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ImGuiFileDialog.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,11 @@ bool IGFD::FileInfos::FinalizeFileTypeParsing(const size_t& vMaxDotToExtract) {
17021702

17031703
IGFD::FileManager::FileManager() {
17041704
fsRoot = IGFD::Utils::GetPathSeparator();
1705-
m_FileSystemName = typeid(FILE_SYSTEM_OVERRIDE).name();
1705+
#define STR(x) #x
1706+
#define STR_AFTER_EXPAND(x) STR(x)
1707+
m_FileSystemName = STR_AFTER_EXPAND(FILE_SYSTEM_OVERRIDE);
1708+
#undef STR_AFTER_EXPAND
1709+
#undef STR
17061710
// std::make_unique is not available un cpp11
17071711
m_FileSystemPtr = std::unique_ptr<FILE_SYSTEM_OVERRIDE>(new FILE_SYSTEM_OVERRIDE());
17081712
// m_FileSystemPtr = std::make_unique<FILE_SYSTEM_OVERRIDE>();
@@ -3544,7 +3548,9 @@ void IGFD::KeyExplorerFeature::SetFlashingAttenuationInSeconds(float vAttenValue
35443548
#pragma region FileDialog
35453549

35463550
IGFD::FileDialog::FileDialog() : PlacesFeature(), KeyExplorerFeature(), ThumbnailFeature() {
3551+
#ifdef USE_PLACES_FEATURE
35473552
m_InitPlaces(m_FileDialogInternal);
3553+
#endif
35483554
}
35493555
IGFD::FileDialog::~FileDialog() = default;
35503556

0 commit comments

Comments
 (0)