Skip to content

Commit b50367d

Browse files
committed
Corrected static analysis issue
1 parent 2c0e36a commit b50367d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

NppJSONViewer/NppJsonViewer/JsonHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class JsonHandler
3131
ParseOptions m_parseOptions {};
3232

3333
public:
34-
JsonHandler(const ParseOptions &options);
34+
explicit JsonHandler(const ParseOptions &options);
3535
~JsonHandler() = default;
3636

3737
auto GetCompressedJson(const std::string &jsonText) -> const Result;

NppJSONViewer/NppJsonViewer/NppJsonPlugin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ void NppJsonPlugin::ProcessNotification(const SCNotification *notifyCode)
6565
case NPPN_BEFORESHUTDOWN:
6666
{
6767
m_bAboutToClose = true;
68+
break;
6869
}
6970

7071
case NPPN_READY:
@@ -74,6 +75,7 @@ void NppJsonPlugin::ProcessNotification(const SCNotification *notifyCode)
7475
{
7576
::SendMessage(m_pJsonViewDlg->getHSelf(), WM_COMMAND, IDC_BTN_REFRESH, 0);
7677
}
78+
break;
7779
}
7880

7981
default:

NppJSONViewer/NppJsonViewer/Profile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Profile
77
std::wstring m_ProfileFilePath;
88

99
public:
10-
Profile(const std::wstring &path);
10+
explicit Profile(const std::wstring &path);
1111
virtual ~Profile() = default;
1212

1313
protected:
@@ -25,7 +25,7 @@ class Profile
2525
class ProfileSetting : public Profile
2626
{
2727
public:
28-
ProfileSetting(const std::wstring &path)
28+
explicit ProfileSetting(const std::wstring &path)
2929
: Profile(path)
3030
{
3131
}

0 commit comments

Comments
 (0)