Skip to content

Commit e8de45e

Browse files
committed
[LINT] error 1931
Constructor 'Symbol' can be used for implicit conversions Signed-off-by: Jocelyn Legault <[email protected]>
1 parent 1842256 commit e8de45e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

PythonScript/src/CreateWrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def writeCppFile(f,out):
302302
out.write('\t{\n')
303303
out.write('\t\tif (m_bufferPtr && m_bufferLen > 0) m_bufferPtr[m_bufferLen-1] = \'\\0\';\n')
304304
out.write('\t}\n')
305-
out.write('\tinline PythonCompatibleStrBuffer(int length) :\n')
305+
out.write('\tinline explicit PythonCompatibleStrBuffer(int length) :\n')
306306
out.write('\t\tm_bufferLen(length>=0?(size_t)length:0),\n')
307307
out.write('\t\tm_bufferPtr(new char[m_bufferLen])\n')
308308
out.write('\t{\n')

PythonScript/src/DynamicIDManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class DynamicIDManager
77
{
88
public:
99

10-
DynamicIDManager(IDAllocator *allocator)
10+
explicit DynamicIDManager(IDAllocator *allocator)
1111
: m_allocator (allocator),
1212
m_nextID(0),
1313
m_capacity(0) {

PythonScript/src/NppAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class NppAllocator : public IDAllocator
99
{
1010
public:
11-
NppAllocator(HWND hNotepad)
11+
explicit NppAllocator(HWND hNotepad)
1212
: m_hNotepad(hNotepad) {};
1313

1414
bool allocate(size_t quantity, idx_t *start);

PythonScript/src/ProcessExecute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct PipeReaderArgs
4747
class process_start_exception
4848
{
4949
public:
50-
process_start_exception(const char *desc)
50+
explicit process_start_exception(const char *desc)
5151
: m_desc(desc)
5252
{};
5353

PythonScript/src/PythonConsole.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct NppData;
1818
class PythonConsole : public NppPythonScript::PyProducerConsumer<std::string>, public ConsoleInterface
1919
{
2020
public:
21-
PythonConsole(HWND hNotepad);
21+
explicit PythonConsole(HWND hNotepad);
2222
PythonConsole(const PythonConsole& other);
2323
~PythonConsole();
2424

PythonScript/src/ScintillaWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct CallbackExecArgs
3535
class ScintillaWrapper : public NppPythonScript::PyProducerConsumer<CallbackExecArgs>
3636
{
3737
public:
38-
ScintillaWrapper(HWND handle);
38+
explicit ScintillaWrapper(HWND handle);
3939
virtual ~ScintillaWrapper();
4040

4141
void setHandle(const HWND handle) { m_handle = handle; };

PythonScript/src/ScintillaWrapperGenerated.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PythonCompatibleStrBuffer
1212
{
1313
if (m_bufferPtr && m_bufferLen > 0) m_bufferPtr[m_bufferLen-1] = '\0';
1414
}
15-
inline PythonCompatibleStrBuffer(int length) :
15+
inline explicit PythonCompatibleStrBuffer(int length) :
1616
m_bufferLen(length>=0?(size_t)length:0),
1717
m_bufferPtr(new char[m_bufferLen])
1818
{

0 commit comments

Comments
 (0)