summaryrefslogtreecommitdiff
path: root/ACE/ACEXML
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-09-14 15:17:01 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-09-14 15:17:01 +0200
commit06b6bea83df9722ada3a0972db825de7750eaf33 (patch)
tree8dae69474fb4cc3e833a4a9c88cc8e3170b19091 /ACE/ACEXML
parent4ebc48ab2088bb536b3810db372b830415bbe74c (diff)
downloadATCD-06b6bea83df9722ada3a0972db825de7750eaf33.tar.gz
Fixed coverity reported issues
* ACE/ACEXML/common/Mem_Map_Stream.cpp: * ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp: * ACE/ACEXML/examples/SAXPrint/Print_Handler.h:
Diffstat (limited to 'ACE/ACEXML')
-rw-r--r--ACE/ACEXML/common/Mem_Map_Stream.cpp8
-rw-r--r--ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp22
-rw-r--r--ACE/ACEXML/examples/SAXPrint/Print_Handler.h2
3 files changed, 6 insertions, 26 deletions
diff --git a/ACE/ACEXML/common/Mem_Map_Stream.cpp b/ACE/ACEXML/common/Mem_Map_Stream.cpp
index df21523d97a..66a065055ab 100644
--- a/ACE/ACEXML/common/Mem_Map_Stream.cpp
+++ b/ACE/ACEXML/common/Mem_Map_Stream.cpp
@@ -4,12 +4,12 @@
#include "ACEXML/common/Mem_Map_Stream.h"
-
-
ACEXML_Mem_Map_Stream::ACEXML_Mem_Map_Stream (void)
- : svc_handler_ (0)
+ : svc_handler_ (0),
+ recv_pos_ (0),
+ get_pos_ (0),
+ end_of_mapping_plus1_ (0)
{
-
}
ACE_SOCK_Stream &
diff --git a/ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp b/ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp
index 73a295fcdc8..8b6ccdc374d 100644
--- a/ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp
+++ b/ACE/ACEXML/examples/SAXPrint/Print_Handler.cpp
@@ -5,9 +5,9 @@
#include "ace/Log_Msg.h"
ACEXML_Print_Handler::ACEXML_Print_Handler (ACEXML_Char* fileName)
- : fileName_(ACE::strnew (fileName))
+ : fileName_(ACE::strnew (fileName)),
+ locator_ (0)
{
-
}
ACEXML_Print_Handler::~ACEXML_Print_Handler (void)
@@ -20,8 +20,6 @@ ACEXML_Print_Handler::characters (const ACEXML_Char *cdata,
size_t start,
size_t length)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event characters () ** start: %u end: %u ***************\n%s\n- End event characters () ---------------\n"),
start, length, cdata));
@@ -30,8 +28,6 @@ ACEXML_Print_Handler::characters (const ACEXML_Char *cdata,
void
ACEXML_Print_Handler::endDocument (void)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event endDocument () ***************\n")));
}
@@ -41,8 +37,6 @@ ACEXML_Print_Handler::endElement (const ACEXML_Char *uri,
const ACEXML_Char *name,
const ACEXML_Char *qName)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event endElement (%s, %s, %s) ***************\n"),
uri, name, qName));
@@ -51,8 +45,6 @@ ACEXML_Print_Handler::endElement (const ACEXML_Char *uri,
void
ACEXML_Print_Handler::endPrefixMapping (const ACEXML_Char *prefix)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event endPrefixMapping (%s) ***************\n"),
prefix));
@@ -71,8 +63,6 @@ void
ACEXML_Print_Handler::processingInstruction (const ACEXML_Char *target,
const ACEXML_Char *data)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event processingInstruction (%s, %s) ***************\n"),
target, data));
@@ -81,7 +71,6 @@ ACEXML_Print_Handler::processingInstruction (const ACEXML_Char *target,
void
ACEXML_Print_Handler::setDocumentLocator (ACEXML_Locator * locator)
{
-
this->locator_ = locator;
// ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("* Event setDocumentLocator () ***************\n")));
}
@@ -89,8 +78,6 @@ ACEXML_Print_Handler::setDocumentLocator (ACEXML_Locator * locator)
void
ACEXML_Print_Handler::skippedEntity (const ACEXML_Char *name)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event skippedEntity (%s) ***************\n"),
name));
@@ -99,8 +86,6 @@ ACEXML_Print_Handler::skippedEntity (const ACEXML_Char *name)
void
ACEXML_Print_Handler::startDocument (void)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event startDocument () ***************\n")));
}
@@ -111,8 +96,6 @@ ACEXML_Print_Handler::startElement (const ACEXML_Char *uri,
const ACEXML_Char *qName,
ACEXML_Attributes *alist)
{
-
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("* Event startElement (%s, %s, %s) ***************\n"),
uri, name, qName));
@@ -218,7 +201,6 @@ ACEXML_Print_Handler::fatalError (ACEXML_SAXParseException& ex)
this->locator_->getLineNumber(),
this->locator_->getColumnNumber()));
ex.print();
-
}
void
diff --git a/ACE/ACEXML/examples/SAXPrint/Print_Handler.h b/ACE/ACEXML/examples/SAXPrint/Print_Handler.h
index b383fb3cbef..da8381f50de 100644
--- a/ACE/ACEXML/examples/SAXPrint/Print_Handler.h
+++ b/ACE/ACEXML/examples/SAXPrint/Print_Handler.h
@@ -142,10 +142,8 @@ public:
*/
virtual void warning (ACEXML_SAXParseException &exception);
private:
-
ACEXML_Char* fileName_;
ACEXML_Locator* locator_;
-
};
#endif /* ACEXML_PRINT_HANDLER_H */