Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2d95ac2e
Commit
2d95ac2e
authored
Mar 28, 2021
by
Max Kellermann
Committed by
Max Kellermann
Apr 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java/String: inherit the super class constructor
parent
f58c14a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
File.hxx
src/java/File.hxx
+2
-0
String.hxx
src/java/String.hxx
+1
-2
No files found.
src/java/File.hxx
View file @
2d95ac2e
...
...
@@ -45,6 +45,8 @@ class File : public LocalObject {
static
jmethodID
getAbsolutePath_method
;
public
:
using
LocalObject
::
LocalObject
;
gcc_nonnull_all
static
void
Initialise
(
JNIEnv
*
env
)
noexcept
;
...
...
src/java/String.hxx
View file @
2d95ac2e
...
...
@@ -44,8 +44,7 @@ namespace Java {
*/
class
String
:
public
LocalRef
<
jstring
>
{
public
:
String
(
JNIEnv
*
env
,
jstring
value
)
noexcept
:
LocalRef
<
jstring
>
(
env
,
value
)
{}
using
LocalRef
::
LocalRef
;
String
(
JNIEnv
*
_env
,
const
char
*
_value
)
noexcept
:
LocalRef
<
jstring
>
(
_env
,
_env
->
NewStringUTF
(
_value
))
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment