From c33e97da6c082889e39f26dd16e873d8468ae465 Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Thu, 1 Apr 2004 21:55:54 +0000
Subject: [PATCH] using fgDefErrMsg

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175845 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/XMLException.cpp | 23 +++--------------------
 1 file changed, 3 insertions(+), 20 deletions(-)

diff --git a/src/xercesc/util/XMLException.cpp b/src/xercesc/util/XMLException.cpp
index 37173310b..d46caf229 100644
--- a/src/xercesc/util/XMLException.cpp
+++ b/src/xercesc/util/XMLException.cpp
@@ -73,23 +73,6 @@
 
 XERCES_CPP_NAMESPACE_BEGIN
 
-// ---------------------------------------------------------------------------
-//  Local data
-//
-//  gDefErrMsg
-//      For now, if we cannot load an exception message, we load up the
-//      default.
-// ---------------------------------------------------------------------------
-static const XMLCh  gDefErrMsg[] =
-{
-        chLatin_C, chLatin_o, chLatin_u, chLatin_l, chLatin_d
-    ,   chSpace, chLatin_n, chLatin_o, chLatin_t, chSpace
-    ,   chLatin_l, chLatin_o, chLatin_a, chLatin_d, chSpace
-    ,   chLatin_m, chLatin_e, chLatin_s, chLatin_s, chLatin_a
-    ,   chLatin_g, chLatin_e, chNull
-};
-
-
 // ---------------------------------------------------------------------------
 //  Local, static data
 // ---------------------------------------------------------------------------
@@ -274,7 +257,7 @@ void XMLException::loadExceptText(const XMLExcepts::Codes toLoad)
 	{
 		fMsg = XMLString::replicate
         (
-            gDefErrMsg
+        XMLUni::fgDefErrMsg
             , fMemoryManager
         );
 		return;
@@ -304,7 +287,7 @@ XMLException::loadExceptText(const  XMLExcepts::Codes toLoad
 	{
 		fMsg = XMLString::replicate
         (
-            gDefErrMsg
+        XMLUni::fgDefErrMsg
             , fMemoryManager
         );
 		return;
@@ -334,7 +317,7 @@ XMLException::loadExceptText(const  XMLExcepts::Codes toLoad
 	{
 		fMsg = XMLString::replicate
         (
-            gDefErrMsg
+        XMLUni::fgDefErrMsg
             , fMemoryManager
         );
 		return;
-- 
GitLab