Skip to content

Commit 4b3a04f

Browse files
committed
fix #344 Fix invalid enums
- renamed problematic enums - automatically created 8859_15 is problematic and needs to be checked if it could be managed within python code gen script from scintilla iface - docu not updated yet
1 parent b5ce0b1 commit 4b3a04f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

PythonScript/src/EnumsWrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
void export_enums()
55
{
6-
//lint -e1793 While calling Symbol: Initializing the implicit object parameter Type (a non-const reference) with a non-lvalue
6+
//lint -e1793 While calling Symbol: Initializing the implicit object parameter Type (a non-const reference) with a non-lvalue
77
// The enum declaration is used as designed, but it messes up Lint.
88
boost::python::enum_<VkKeys>("VK_KEYS")
99
.value("VK_BACK", PYSCR_VK_BACK)
@@ -328,7 +328,7 @@ void export_enums()
328328
.value("ARABIC", PYSCR_SC_CHARSET_ARABIC)
329329
.value("VIETNAMESE", PYSCR_SC_CHARSET_VIETNAMESE)
330330
.value("THAI", PYSCR_SC_CHARSET_THAI)
331-
.value("8859_15", PYSCR_SC_CHARSET_8859_15);
331+
.value("ISO_8859_15", PYSCR_SC_CHARSET_8859_15);
332332

333333
boost::python::enum_<CaseVisible>("CASEVISIBLE")
334334
.value("MIXED", PYSCR_SC_CASE_MIXED)

PythonScript/src/NotepadPython.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace NppPythonScript
1515

1616
void export_notepad()
1717
{
18-
//lint -e1793 While calling Symbol: Initializing the implicit object parameter Type (a non-const reference) with a non-lvalue
18+
//lint -e1793 While calling Symbol: Initializing the implicit object parameter Type (a non-const reference) with a non-lvalue
1919
// The class and enum declarations are used as designed, but they mess up Lint.
2020
boost::python::register_exception_translator<process_start_exception>(&translateProcessStart);
2121
boost::python::register_exception_translator<InvalidValueProvidedException>(&translateInvalidValueProvidedException);
@@ -223,8 +223,8 @@ void export_notepad()
223223
boost::python::enum_<winVer>("WINVER")
224224
.value("UNKNOWN", WV_UNKNOWN)
225225
.value("WIN32S", WV_WIN32S)
226-
.value("95", WV_95)
227-
.value("98", WV_98)
226+
.value("WIN95", WV_95)
227+
.value("WIN98", WV_98)
228228
.value("ME", WV_ME)
229229
.value("NT", WV_NT)
230230
.value("W2K", WV_W2K)

0 commit comments

Comments
 (0)