Mercurial > hg > svcore
comparison base/TempDirectory.cpp @ 1038:cc27f35aa75c cxx11
Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author | Chris Cannam |
---|---|
date | Tue, 03 Mar 2015 15:18:24 +0000 |
parents | f5cd33909744 |
children | c811991a5efa |
comparison
equal
deleted
inserted
replaced
1037:bf0e5944289b | 1038:cc27f35aa75c |
---|---|
108 static QString chars = | 108 static QString chars = |
109 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | 109 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; |
110 | 110 |
111 QString suffix; | 111 QString suffix; |
112 int padlen = 6, attempts = 100; | 112 int padlen = 6, attempts = 100; |
113 unsigned int r = time(0) ^ getpid(); | 113 unsigned int r = (unsigned int)(time(0) ^ getpid()); |
114 | 114 |
115 for (int i = 0; i < padlen; ++i) { | 115 for (int i = 0; i < padlen; ++i) { |
116 suffix += "X"; | 116 suffix += "X"; |
117 } | 117 } |
118 | 118 |