parser/xml/src/nsSAXLocator.cpp

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsSAXLocator.h"
     8 NS_IMPL_ISUPPORTS(nsSAXLocator, nsISAXLocator)
    10 nsSAXLocator::nsSAXLocator(nsString& aPublicId,
    11                            nsString& aSystemId,
    12                            int32_t aLineNumber,
    13                            int32_t aColumnNumber) :
    14   mPublicId(aPublicId),
    15   mSystemId(aSystemId),
    16   mLineNumber(aLineNumber),
    17   mColumnNumber(aColumnNumber)
    18 {
    19 }
    21 NS_IMETHODIMP
    22 nsSAXLocator::GetColumnNumber(int32_t *aColumnNumber)
    23 {
    24   *aColumnNumber = mColumnNumber;
    25   return NS_OK;
    26 }
    28 NS_IMETHODIMP
    29 nsSAXLocator::GetLineNumber(int32_t *aLineNumber)
    30 {
    31   *aLineNumber = mLineNumber;
    32   return NS_OK;
    33 }
    35 NS_IMETHODIMP
    36 nsSAXLocator::GetPublicId(nsAString &aPublicId)
    37 {
    38   aPublicId = mPublicId;
    39   return NS_OK;
    40 }
    42 NS_IMETHODIMP
    43 nsSAXLocator::GetSystemId(nsAString &aSystemId)
    44 {
    45   aSystemId = mSystemId;
    46   return NS_OK;
    47 }

mercurial