gecko/parser/xml/nsSAXLocator.cpp
Birunthan Mohanathas f420b3ca1a Bug 1057923 - Flatten parser/xml/{public,src}/ into parent directory. r=peterv
--HG--
rename : parser/xml/public/nsIMozSAXXMLDeclarationHandler.idl => parser/xml/nsIMozSAXXMLDeclarationHandler.idl
rename : parser/xml/public/nsISAXAttributes.idl => parser/xml/nsISAXAttributes.idl
rename : parser/xml/public/nsISAXContentHandler.idl => parser/xml/nsISAXContentHandler.idl
rename : parser/xml/public/nsISAXDTDHandler.idl => parser/xml/nsISAXDTDHandler.idl
rename : parser/xml/public/nsISAXErrorHandler.idl => parser/xml/nsISAXErrorHandler.idl
rename : parser/xml/public/nsISAXLexicalHandler.idl => parser/xml/nsISAXLexicalHandler.idl
rename : parser/xml/public/nsISAXLocator.idl => parser/xml/nsISAXLocator.idl
rename : parser/xml/public/nsISAXMutableAttributes.idl => parser/xml/nsISAXMutableAttributes.idl
rename : parser/xml/public/nsISAXXMLFilter.idl => parser/xml/nsISAXXMLFilter.idl
rename : parser/xml/public/nsISAXXMLReader.idl => parser/xml/nsISAXXMLReader.idl
rename : parser/xml/src/nsSAXAttributes.cpp => parser/xml/nsSAXAttributes.cpp
rename : parser/xml/src/nsSAXAttributes.h => parser/xml/nsSAXAttributes.h
rename : parser/xml/src/nsSAXLocator.cpp => parser/xml/nsSAXLocator.cpp
rename : parser/xml/src/nsSAXLocator.h => parser/xml/nsSAXLocator.h
rename : parser/xml/src/nsSAXXMLReader.cpp => parser/xml/nsSAXXMLReader.cpp
rename : parser/xml/src/nsSAXXMLReader.h => parser/xml/nsSAXXMLReader.h
2014-08-26 07:10:58 -07:00

48 lines
1.1 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsSAXLocator.h"
NS_IMPL_ISUPPORTS(nsSAXLocator, nsISAXLocator)
nsSAXLocator::nsSAXLocator(nsString& aPublicId,
nsString& aSystemId,
int32_t aLineNumber,
int32_t aColumnNumber) :
mPublicId(aPublicId),
mSystemId(aSystemId),
mLineNumber(aLineNumber),
mColumnNumber(aColumnNumber)
{
}
NS_IMETHODIMP
nsSAXLocator::GetColumnNumber(int32_t *aColumnNumber)
{
*aColumnNumber = mColumnNumber;
return NS_OK;
}
NS_IMETHODIMP
nsSAXLocator::GetLineNumber(int32_t *aLineNumber)
{
*aLineNumber = mLineNumber;
return NS_OK;
}
NS_IMETHODIMP
nsSAXLocator::GetPublicId(nsAString &aPublicId)
{
aPublicId = mPublicId;
return NS_OK;
}
NS_IMETHODIMP
nsSAXLocator::GetSystemId(nsAString &aSystemId)
{
aSystemId = mSystemId;
return NS_OK;
}