Kaydet (Commit) 310eb665 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

inline stream operator and remove object

Change-Id: I9df9a56eca662c6adf0a2cf4ef25a917da8dc609
üst 96c7fff3
...@@ -224,7 +224,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\ ...@@ -224,7 +224,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
sw/source/core/docnode/cancellablejob \ sw/source/core/docnode/cancellablejob \
sw/source/core/docnode/finalthreadmanager \ sw/source/core/docnode/finalthreadmanager \
sw/source/core/docnode/ndcopy \ sw/source/core/docnode/ndcopy \
sw/source/core/docnode/ndindex \
sw/source/core/docnode/ndnotxt \ sw/source/core/docnode/ndnotxt \
sw/source/core/docnode/ndnum \ sw/source/core/docnode/ndnum \
sw/source/core/docnode/ndsect \ sw/source/core/docnode/ndsect \
......
...@@ -124,7 +124,10 @@ public: ...@@ -124,7 +124,10 @@ public:
SwNode& GetNode() const { return *pNd; } SwNode& GetNode() const { return *pNd; }
}; };
std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index); inline std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index)
{
return s << "SwNodeIndex (node " << index.GetIndex() << ")";
};
// SwRange // SwRange
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "ndindex.hxx"
std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index)
{
return s << "SwNodeIndex (node " << index.GetIndex() << ")";
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment