tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / xmloff / source / core / SvXMLAttr.cxx
blob72809c7a0fd07056f4a65576dc49864473e73fa3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include <limits.h>
12 #include <utility>
13 #include "SvXMLAttr.hxx"
15 SvXMLAttr::SvXMLAttr( OUString _aLName,
16 OUString _aValue ) :
17 aPrefixPos(USHRT_MAX),
18 aLName(std::move(_aLName)),
19 aValue(std::move(_aValue))
23 SvXMLAttr::SvXMLAttr( const sal_uInt16 nPos,
24 OUString _aLName,
25 OUString _aValue ) :
26 aPrefixPos(nPos),
27 aLName(std::move(_aLName)),
28 aValue(std::move(_aValue))
32 bool SvXMLAttr::operator== (const SvXMLAttr &rCmp) const
34 return ( rCmp.aPrefixPos == aPrefixPos ) &&
35 ( rCmp.aLName == aLName ) &&
36 ( rCmp.aValue == aValue );
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */