From eb23cf8796255d68bb522164b1766f6200efe89d Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Wed, 31 Mar 2004 18:10:22 +0000 Subject: [PATCH] string cleanup --- src/common/utils.cpp | 2 ++ src/common/utils_proto.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/common/utils.cpp b/src/common/utils.cpp index e2dd9baa90..7ac4ace9b9 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -39,6 +39,8 @@ #undef __need_size_t #endif +#include "../common/utils_proto.h" + namespace fb_utils { char* fb_exact_name(char* const str) diff --git a/src/common/utils_proto.h b/src/common/utils_proto.h index 6705d54072..eb7327d0c1 100644 --- a/src/common/utils_proto.h +++ b/src/common/utils_proto.h @@ -32,8 +32,14 @@ #ifndef INCLUDE_UTILS_PROTO_H #define INCLUDE_UTILS_PROTO_H +#include "fb_string.h" + namespace fb_utils { char* fb_exact_name(char* const str); + inline void fb_exact_name(Firebird::string& str) + { + str.rtrim(); + } char* fb_exact_name_limit(char* const str, size_t bufsize); }