Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
38edbe43
Commit
38edbe43
authored
Feb 04, 2019
by
IOhannes m zmölnig
Browse files
getting rid of "const char*" -> gem::any
parent
9e2fd134
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Pixes/pix_buffer.cpp
View file @
38edbe43
...
...
@@ -36,8 +36,7 @@ static gem::any atom2any(t_atom*ap)
result
=
atom_getfloat
(
ap
);
break
;
case
A_SYMBOL
:
#warning gem::any doesnt like "const char*"
result
=
const_cast
<
char
*>
(
atom_getsymbol
(
ap
)
->
s_name
);
result
=
std
::
string
(
atom_getsymbol
(
ap
)
->
s_name
);
break
;
default:
result
=
ap
->
a_w
.
w_gpointer
;
...
...
src/Pixes/pix_record.cpp
View file @
38edbe43
...
...
@@ -55,8 +55,7 @@ public:
result
=
atom_getfloat
(
ap
);
break
;
case
A_SYMBOL
:
#warning gem::any doesnt like "const char*"
result
=
const_cast
<
char
*>
(
atom_getsymbol
(
ap
)
->
s_name
);
result
=
std
::
string
(
atom_getsymbol
(
ap
)
->
s_name
);
break
;
default:
result
=
ap
->
a_w
.
w_gpointer
;
...
...
src/Pixes/pix_video.cpp
View file @
38edbe43
...
...
@@ -557,8 +557,7 @@ static gem::any atom2any(t_atom*ap)
result
=
atom_getfloat
(
ap
);
break
;
case
A_SYMBOL
:
#warning gem::any doesnt like "const char*"
result
=
const_cast
<
char
*>
(
atom_getsymbol
(
ap
)
->
s_name
);
result
=
std
::
string
(
atom_getsymbol
(
ap
)
->
s_name
);
break
;
default:
result
=
ap
->
a_w
.
w_gpointer
;
...
...
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