RCS file: /cvsroot/scummvm/scummvm/common/str.cpp,v
retrieving revision 1.5
diff -u -r1.5 str.cpp
|
|
|
20 | 20 | |
21 | 21 | #include "stdafx.h" |
22 | 22 | #include "str.h" |
23 | | #include "util.h" |
24 | | |
25 | 23 | |
26 | | #ifdef _MSC_VER |
27 | 24 | |
28 | | # pragma warning( disable : 4068 ) // unknown pragmas |
29 | 25 | |
30 | | #endif |
31 | 26 | |
| 27 | |
| 28 | #ifdef _MSC_VER |
| 29 | # pragma warning( disable : 4068 ) // unknown pragmas |
| 30 | #endif |
+
namespace ScummVM {
@@ -32,7 +32,7 @@
{
_refCount = new int(1);
if (str) {
- _capacity = _len = resStrLen(str);
+ _capacity = _len = strlen(str);
_str = (char *)calloc(1, _capacity+1);
memcpy(_str, str, _len+1);
} else {
@@ -46,7 +46,7 @@
printf("String::String(const ConstString &str)\n");
_refCount = new int(1);
if (str._str) {
- _capacity = _len = resStrLen(str._str);
+ _capacity = _len = strlen(str._str);
_str = (char *)calloc(1, _capacity+1);
memcpy(_str, str._str, _len+1);
} else {
@@ -82,7 +82,7 @@
String& String::operator =(const char* str)
{
- int len = resStrLen(str);
+ int len = strlen(str);
if (len > 0) {
ensureCapacity(len, false);
@@ -115,7 +115,7 @@
String& String::operator +=(const char* str)
{
- int len = resStrLen(str);
+ int len = strlen(str);
if (len > 0) {
ensureCapacity(_len + len, true);
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.3
diff -u -r1.3 dialogs.cpp
|
|
|
29 | 29 | #include "gui/ListWidget.h" |
30 | 30 | #include "common/config-file.h" |
31 | 31 | |
32 | | |
33 | 32 | |
34 | | #ifdef _MSC_VER |
35 | 33 | |
36 | | # pragma warning( disable : 4068 ) |
37 | 34 | |
38 | | #endif |
39 | 35 | |
40 | | |
41 | 36 | |
| 37 | |
| 38 | #ifdef _MSC_VER |
| 39 | # pragma warning( disable : 4068 ) |
| 40 | #endif |
| 41 | |