~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to ACEXML/common/LocatorImpl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-  LocatorImpl.cpp,v 1.6 2003/05/30 03:31:48 kitty Exp
2
 
 
3
 
#include "ACEXML/common/LocatorImpl.h"
4
 
 
5
 
#if !defined (__ACEXML_INLINE__)
6
 
# include "ACEXML/common/LocatorImpl.i"
7
 
#endif /* __ACEXML_INLINE__ */
8
 
 
9
 
ACEXML_LocatorImpl::ACEXML_LocatorImpl (void)
10
 
  : publicId_ (0),
11
 
    systemId_ (0),
12
 
    lineNumber_ (1),
13
 
    columnNumber_ (0)
14
 
{
15
 
}
16
 
 
17
 
ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Char* systemId,
18
 
                                        const ACEXML_Char* publicId)
19
 
  : publicId_ (publicId ? ACE::strnew (publicId) : 0),
20
 
    systemId_ (systemId ? ACE::strnew (systemId) : 0),
21
 
    lineNumber_ (1),
22
 
    columnNumber_ (0)
23
 
{
24
 
}
25
 
 
26
 
 
27
 
ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Locator& locator)
28
 
  : publicId_ (locator.getPublicId() ? ACE::strnew(locator.getPublicId ()): 0),
29
 
    systemId_ (locator.getSystemId() ? ACE::strnew(locator.getSystemId ()): 0),
30
 
    lineNumber_ (locator.getLineNumber ()),
31
 
    columnNumber_ (locator.getColumnNumber ())
32
 
{
33
 
}
34
 
 
35
 
ACEXML_LocatorImpl::~ACEXML_LocatorImpl (void)
36
 
{
37
 
  this->reset();
38
 
}
39
 
 
40
 
void
41
 
ACEXML_LocatorImpl::reset (void)
42
 
{
43
 
  delete[] this->publicId_;
44
 
  this->publicId_ = 0;
45
 
  delete[] this->systemId_;
46
 
  this->systemId_ = 0;
47
 
  this->columnNumber_ = 0;
48
 
  this->lineNumber_ = 1;
49
 
}