summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
Diffstat (limited to 'ace')
-rw-r--r--ace/Filecache.h20
-rw-r--r--ace/OS_String.cpp6
2 files changed, 14 insertions, 12 deletions
diff --git a/ace/Filecache.h b/ace/Filecache.h
index 4ea4b141a76..78bedd38a64 100644
--- a/ace/Filecache.h
+++ b/ace/Filecache.h
@@ -67,18 +67,18 @@ class ACE_Filecache_Object;
*/
class ACE_Export ACE_Filecache_Handle
{
-
- // (1) Get rid of the useless copying of files when reading. Although
- // it does make sure the file you send isn't being changed, it doesn't
- // make sure the file is in a sensible state before sending it.
-
- // Alternative: if the file get's trashed while it is being shipped, let
- // the client request the file again. The cache should have an updated
- // copy by that point.
-
+ // (1) Get rid of the useless copying of files when reading.
+ // Although it does make sure the file you send isn't being changed,
+ // it doesn't make sure the file is in a sensible state before
+ // sending it.
+ //
+ // Alternative: if the file get's trashed while it is being shipped,
+ // let the client request the file again. The cache should have an
+ // updated copy by that point.
+ //
// (2) Use hashing for locating files. This means I need a hastable
// implementation with buckets.
-
+ //
// (3) Only lock when absolutely necessary. JAWS_Virtual_Filesystem was
// rather conservative, but for some reason it still ran into problems.
// Since this design should be simpler, problems should be easier to spot.
diff --git a/ace/OS_String.cpp b/ace/OS_String.cpp
index cb6e8e03d0b..a7388fffd86 100644
--- a/ace/OS_String.cpp
+++ b/ace/OS_String.cpp
@@ -718,8 +718,10 @@ ACE_OS_String::wcslen_emulation (const ACE_WCHAR_T *string)
{
const ACE_WCHAR_T *s;
- for (s = string; *s; ++s);
- return s - string;
+ for (s = string; *s; ++s)
+ continue;
+
+ return s - string;
}
#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSLEN */