@@ -382,7 +382,7 @@ LexerConf::Ptr_t ColoursAndFontsManager::GetLexer(const wxString& lexerName, con
382382void ColoursAndFontsManager::Save (const wxFileName& lexer_json)
383383{
384384 bool for_export = lexer_json.IsOk ();
385- JSON root (cJSON_Array );
385+ JSON root (JsonType::Array );
386386 JSONItem element = root.toElement ();
387387 for (const auto & [_, lexers] : m_lexersMap) {
388388 for (const auto & lexer : lexers) {
@@ -578,7 +578,7 @@ wxFileName ColoursAndFontsManager::GetConfigFile() const
578578void ColoursAndFontsManager::SaveGlobalSettings (bool notify)
579579{
580580 // save the global settings
581- JSON root (cJSON_Object );
581+ JSON root (JsonType::Object );
582582 root.toElement ().addProperty (" m_globalTheme" , m_globalTheme);
583583 wxFileName fnSettings = GetConfigFile ();
584584 root.save (fnSettings.GetFullPath ());
@@ -1162,7 +1162,7 @@ bool ColoursAndFontsManager::ExportThemesToFile(const wxFileName& outputFile, co
11621162 M.insert (names.Item (i).Lower ());
11631163 }
11641164
1165- JSON root (cJSON_Array );
1165+ JSON root (JsonType::Array );
11661166 JSONItem arr = root.toElement ();
11671167 std::vector<LexerConf::Ptr_t> Lexers;
11681168 for (const auto & lexer : m_allLexers) {
0 commit comments