diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-09 01:10:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-09 01:10:59 +0200 |
commit | e6fe701727268a5c2284fec2867c0a9bfe10b1aa (patch) | |
tree | ce1097293bb6b5393fa1172a73cb2f13354c5234 /libraries/classparser/src/constants.h | |
parent | 35a698ef725bf250a5348bea8c47ff3470be7515 (diff) | |
parent | 9ec260619b48447e398445aecd6651d319b8217e (diff) | |
download | PrismLauncher-e6fe701727268a5c2284fec2867c0a9bfe10b1aa.tar.gz PrismLauncher-e6fe701727268a5c2284fec2867c0a9bfe10b1aa.tar.bz2 PrismLauncher-e6fe701727268a5c2284fec2867c0a9bfe10b1aa.zip |
Merge pull request #808 from Scrumplex/fix-lgtm-warnings
Diffstat (limited to 'libraries/classparser/src/constants.h')
-rw-r--r-- | libraries/classparser/src/constants.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libraries/classparser/src/constants.h b/libraries/classparser/src/constants.h index 3b6c3b7a..47b325b9 100644 --- a/libraries/classparser/src/constants.h +++ b/libraries/classparser/src/constants.h @@ -1,5 +1,6 @@ #pragma once #include "errors.h" +#include "membuffer.h" #include <sstream> namespace java @@ -90,7 +91,7 @@ public: break; default: // invalid constant type! - throw new classfile_exception(); + throw classfile_exception(); } } constant(int) @@ -210,7 +211,7 @@ public: { if (constant_index == 0 || constant_index > constants.size()) { - throw new classfile_exception(); + throw classfile_exception(); } return constants[constant_index - 1]; } |