[Bf-blender-cvs] [af89a895125] fixed_width_integers: Fixup: linux types.
Nicholas Rishel
noreply at git.blender.org
Wed Jun 16 22:09:17 CEST 2021
Commit: af89a8951252a6566a851f4b882be1d9b8b257b3
Author: Nicholas Rishel
Date: Wed Jun 16 13:09:03 2021 -0700
Branches: fixed_width_integers
https://developer.blender.org/rBaf89a8951252a6566a851f4b882be1d9b8b257b3
Fixup: linux types.
===================================================================
M intern/ghost/intern/GHOST_SystemPathsUnix.cpp
M intern/ghost/intern/GHOST_SystemX11.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemPathsUnix.cpp b/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
index ffd53819609..b58799e9c2a 100644
--- a/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
+++ b/intern/ghost/intern/GHOST_SystemPathsUnix.cpp
@@ -86,7 +86,7 @@ const char *GHOST_SystemPathsUnix::getUserDir(int version, const char *versionst
return NULL;
}
}
- return (uint8_t *)user_path.c_str();
+ return user_path.c_str();
}
else {
if (user_path.empty() || last_version != version) {
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index f747fb66837..525651c0fb9 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -2146,7 +2146,7 @@ char *GHOST_SystemX11::getClipboard(bool selection) const
Window owner;
/* from xclip.c doOut() v0.11 */
- unsigned char *sel_buf;
+ char *sel_buf;
unsigned long sel_len = 0;
XEvent evt;
unsigned int context = XCLIB_XCOUT_NONE;
@@ -2165,13 +2165,13 @@ char *GHOST_SystemX11::getClipboard(bool selection) const
owner = XGetSelectionOwner(m_display, sseln);
if (owner == win) {
if (sseln == m_atom.CLIPBOARD) {
- sel_buf = (unsigned char *)malloc(strlen(txt_cut_buffer) + 1);
- strcpy((char *)sel_buf, txt_cut_buffer);
+ sel_buf = (char *)malloc(strlen(txt_cut_buffer) + 1);
+ strcpy(sel_buf, txt_cut_buffer);
return sel_buf;
}
else {
- sel_buf = (unsigned char *)malloc(strlen(txt_select_buffer) + 1);
- strcpy((char *)sel_buf, txt_select_buffer);
+ sel_buf = (char *)malloc(strlen(txt_select_buffer) + 1);
+ strcpy(sel_buf, txt_select_buffer);
return sel_buf;
}
}
@@ -2231,8 +2231,8 @@ char *GHOST_SystemX11::getClipboard(bool selection) const
if (sel_len) {
/* Only print the buffer out, and free it, if it's not empty. */
- unsigned char *tmp_data = (unsigned char *)malloc(sel_len + 1);
- memcpy((char *)tmp_data, (char *)sel_buf, sel_len);
+ char *tmp_data = (char *)malloc(sel_len + 1);
+ memcpy(tmp_data, (char *)sel_buf, sel_len);
tmp_data[sel_len] = '\0';
if (sseln == m_atom.STRING)
More information about the Bf-blender-cvs
mailing list