This is an automated email from the ASF dual-hosted git repository.

borisk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git

commit 56656c9b458dd4d8ae92db975fddee0224a83b15
Author: Boris Kolpackov <bo...@codesynthesis.com>
AuthorDate: Wed Dec 13 08:33:13 2023 +0200

    Reorder inline function definitions to help with MinGW GCC symbol exporting
---
 src/xercesc/util/KVStringPair.hpp | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/xercesc/util/KVStringPair.hpp 
b/src/xercesc/util/KVStringPair.hpp
index bdc79ee10..77e27772b 100644
--- a/src/xercesc/util/KVStringPair.hpp
+++ b/src/xercesc/util/KVStringPair.hpp
@@ -163,16 +163,6 @@ inline XMLCh* KVStringPair::getValue()
 // ---------------------------------------------------------------------------
 //  KVStringPair: Setters
 // ---------------------------------------------------------------------------
-inline void KVStringPair::setKey(const XMLCh* const newKey)
-{
-    setKey(newKey, XMLString::stringLen(newKey));
-}
-
-inline void KVStringPair::setValue(const XMLCh* const newValue)
-{
-    setValue(newValue, XMLString::stringLen(newValue));
-}
-
 inline void KVStringPair::setKey(  const XMLCh* const newKey
                                  , const XMLSize_t    newKeyLength)
 {
@@ -201,6 +191,16 @@ inline void KVStringPair::setValue(  const XMLCh* const 
newValue
     memcpy(fValue, newValue, (newValueLength+1) * sizeof(XMLCh)); // len+1 
because of the 0 at the end
 }
 
+inline void KVStringPair::setKey(const XMLCh* const newKey)
+{
+    setKey(newKey, XMLString::stringLen(newKey));
+}
+
+inline void KVStringPair::setValue(const XMLCh* const newValue)
+{
+    setValue(newValue, XMLString::stringLen(newValue));
+}
+
 inline void KVStringPair::set(  const   XMLCh* const    newKey
                               , const   XMLCh* const    newValue)
 {


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to