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>2012-07-22 02:58:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-22 02:58:08 +0400
commit9b515033071b40e982ef647ee225e8afc377e0c9 (patch)
treeb8906cf9d21d2441c6dd0db1b518561def3f8f1a /intern/ghost/intern/GHOST_DropTargetX11.cpp
parent049dd8a0ffa94b0d02033877ec99172659b89d8c (diff)
style cleanup
Diffstat (limited to 'intern/ghost/intern/GHOST_DropTargetX11.cpp')
-rw-r--r--intern/ghost/intern/GHOST_DropTargetX11.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/intern/ghost/intern/GHOST_DropTargetX11.cpp b/intern/ghost/intern/GHOST_DropTargetX11.cpp
index c1cc55b332a..e2e15277a99 100644
--- a/intern/ghost/intern/GHOST_DropTargetX11.cpp
+++ b/intern/ghost/intern/GHOST_DropTargetX11.cpp
@@ -144,23 +144,23 @@ void GHOST_DropTargetX11::UrlDecode(char *decodedOut, int bufferSize, const char
break;
}
- // We are now converting
+ /* We are now converting */
state = STATE_CONVERTING;
break;
case STATE_CONVERTING:
bothDigits = true;
- // Create a buffer to hold the hex. For example, if %20, this
- // buffer would hold 20 (in ASCII)
+ /* Create a buffer to hold the hex. For example, if %20, this
+ * buffer would hold 20 (in ASCII) */
memset(tempNumBuf, 0, sizeof(tempNumBuf));
- // Conversion complete (i.e. don't convert again next iter)
+ /* Conversion complete (i.e. don't convert again next iter) */
state = STATE_SEARCH;
strncpy(tempNumBuf, &encodedIn[i], 2);
- // Ensure both characters are hexadecimal
+ /* Ensure both characters are hexadecimal */
for (j = 0; j < 2; ++j) {
if (!isxdigit(tempNumBuf[j]))
@@ -170,16 +170,16 @@ void GHOST_DropTargetX11::UrlDecode(char *decodedOut, int bufferSize, const char
if (!bothDigits)
break;
- // Convert two hexadecimal characters into one character
+ /* Convert two hexadecimal characters into one character */
sscanf(tempNumBuf, "%x", &asciiCharacter);
- // Ensure we aren't going to overflow
+ /* Ensure we aren't going to overflow */
assert(strlen(decodedOut) < bufferSize);
- // Concatenate this character onto the output
+ /* Concatenate this character onto the output */
strncat(decodedOut, (char *)&asciiCharacter, 1);
- // Skip the next character
+ /* Skip the next character */
i++;
break;
}