Skip to content

Commit

Permalink
Add default constructor to PointerScope to avoid compiler warnings …
Browse files Browse the repository at this point in the history
…(pull #575)
  • Loading branch information
HGuillemet authored May 31, 2022
1 parent 12d7cbc commit 3d0256c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/bytedeco/javacpp/PointerScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public static Iterator<PointerScope> getScopeIterator() {
/** When set to true, the next call to {@link #close()} does not release but resets this variable. */
boolean extend = false;

/** Creates a new scope accepting all pointer types and pushes itself on the {@link #scopeStack}. */
public PointerScope() {
this((Class<? extends Pointer>[])null);
}

/** Initializes {@link #forClasses}, and pushes itself on the {@link #scopeStack}. */
public PointerScope(Class<? extends Pointer>... forClasses) {
if (logger.isDebugEnabled()) {
Expand Down

0 comments on commit 3d0256c

Please sign in to comment.