Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:20:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:15 +0400
commit483d8da9bcfa1eeef950ba45633c5fb49fb7f93b (patch)
tree7401d2e6b3fab99a2738a7497ef851117b455e02 /source/blender/blenlib/intern/path_util.c
parenta2c107aef1c8aaf7deb17dd0319bc07e55cb4293 (diff)
Code cleanup: use 'const' for arrays (blenlib)
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 118cd50a2a4..0be2e84b35b 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -646,8 +646,8 @@ void BLI_path_rel(char *file, const char *relfile)
if (lslash) {
/* find the prefix of the filename that is equal for both filenames.
* This is replaced by the two slashes at the beginning */
- char *p = temp;
- char *q = file;
+ const char *p = temp;
+ const char *q = file;
char *r = res;
#ifdef WIN32
@@ -1723,7 +1723,7 @@ bool BLI_testextensie_glob(const char *str, const char *ext_fnmatch)
char pattern[16];
while (ext_step[0]) {
- char *ext_next;
+ const char *ext_next;
int len_ext;
if ((ext_next = strchr(ext_step, ';'))) {
@@ -2057,8 +2057,8 @@ int BLI_rebase_path(char *abs, size_t abs_len,
*/
const char *BLI_first_slash(const char *string)
{
- char * const ffslash = strchr(string, '/');
- char * const fbslash = strchr(string, '\\');
+ const char * const ffslash = strchr(string, '/');
+ const char * const fbslash = strchr(string, '\\');
if (!ffslash) return fbslash;
else if (!fbslash) return ffslash;