prestonf 2005/03/04 06:06:29
Modified: c/src/soap HeaderBlock.cpp
Log:
Hi All,
I think this will complete what needs to be done for AXISCPP-341.
Regards,
Fred Preston.
Revision Changes Path
1.59 +16 -16 ws-axis/c/src/soap/HeaderBlock.cpp
Index: HeaderBlock.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- HeaderBlock.cpp 4 Mar 2005 14:02:40 -0000 1.58
+++ HeaderBlock.cpp 4 Mar 2005 14:06:29 -0000 1.59
@@ -423,33 +423,33 @@
// Iterate through the namespaces checking that the prefix does not already
// exist.
- bool bNameFound = false;
- list<Namespace*>::iterator itCurrNamespaceDecl = m_namespaceDecls.begin();
+ bool bNameFound = false;
+ list<Namespace*>::iterator itCurrNamespaceDecl = m_namespaceDecls.begin();
- while( itCurrNamespaceDecl != m_namespaceDecls.end() && !bNameFound)
- {
- if( !(bNameFound = !strcmp( (*itCurrNamespaceDecl)->getPrefix(), pPrefix)))
+ while( itCurrNamespaceDecl != m_namespaceDecls.end() && !bNameFound)
{
- itCurrNamespaceDecl++;
- }
- }
+ if( !(bNameFound = !strcmp( (*itCurrNamespaceDecl)->getPrefix(), pPrefix)))
+ {
+ itCurrNamespaceDecl++;
+ }
+ }
// If the prefix is found in the declared namespace list, then update the uri
// for the prefix and return a pointer to that namespace.
- if( bNameFound)
- {
- (*itCurrNamespaceDecl)->setURI( pURI);
+ if( bNameFound)
+ {
+ (*itCurrNamespaceDecl)->setURI( pURI);
- return (INamespace *) *itCurrNamespaceDecl;
- }
+ return (INamespace *) *itCurrNamespaceDecl;
+ }
// If the prefix was not found, then create a new namespace for the prefix/uri
// pair and return the pointer to the new namespace.
- Namespace * pNamespace = new Namespace( pPrefix, pURI);
+ Namespace * pNamespace = new Namespace( pPrefix, pURI);
- m_namespaceDecls.push_back( pNamespace);
+ m_namespaceDecls.push_back( pNamespace);
- return (INamespace *) pNamespace;
+ return (INamespace *) pNamespace;
}
else
{
|