LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/xmloff/source/core - SvXMLAttr.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 16 16 100.0 %
Date: 2013-07-09 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include <limits.h>    //USHRT_MAX
      11             : #include "SvXMLAttr.hxx"
      12             : 
      13           5 : SvXMLAttr::SvXMLAttr( const OUString& rLName,
      14             :                       const OUString& rValue ) :
      15             :         aPrefixPos(USHRT_MAX),
      16             :         aLName(rLName),
      17           5 :         aValue(rValue)
      18             : {
      19           5 : }
      20             : 
      21           8 : SvXMLAttr::SvXMLAttr( const sal_uInt16 nPos,
      22             :                       const OUString& rLName,
      23             :                       const OUString& rValue ) :
      24             :         aPrefixPos(nPos),
      25             :         aLName(rLName),
      26           8 :         aValue(rValue)
      27             : {
      28           8 : }
      29             : 
      30         862 : bool SvXMLAttr::operator== (const SvXMLAttr &rCmp) const
      31             : {
      32        1724 :     return ( rCmp.aPrefixPos == aPrefixPos ) &&
      33        1724 :            ( rCmp.aLName == aLName ) &&
      34        1724 :            ( rCmp.aValue == aValue );
      35             : }
      36             : 
      37          82 : sal_uInt16 SvXMLAttr::getPrefixPos() const
      38             : {
      39          82 :     return aPrefixPos;
      40             : }
      41             : 
      42          68 : const OUString& SvXMLAttr::getLName() const
      43             : {
      44          68 :     return aLName;
      45             : }
      46             : 
      47          22 : const OUString& SvXMLAttr::getValue() const {
      48          22 :     return aValue;
      49             : }
      50             : 
      51             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10