From 0e2b56b5664b05f1a4652b43daabfd6853bf83df Mon Sep 17 00:00:00 2001 From: oscarl-2 Date: Thu, 3 Apr 2003 06:29:23 +0000 Subject: [PATCH] Small fix for Dano - at Bernd request =) --- bepascal/bepascal/be/support/String.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bepascal/bepascal/be/support/String.cpp b/bepascal/bepascal/be/support/String.cpp index 37e236d..3ca4f16 100644 --- a/bepascal/bepascal/be/support/String.cpp +++ b/bepascal/bepascal/be/support/String.cpp @@ -491,11 +491,16 @@ BString & BString_Truncate(BString *String, int32 newLength, bool lazy) { - return String->Truncate(newLength, - lazy); +#ifdef B_BEOS_VERSION_DANO + // Dano's Truncate doesn't have the 'lazy' parameter + return String->Truncate(newLength); +#else + return String->Truncate(newLength, lazy); +#endif } + /* * Method: BString::Remove() * Descr: