diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 15:42:30 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 15:42:30 +0000 |
commit | fac99492c89f5fc3af18ac3988ff31a63e5ceb5b (patch) | |
tree | ca53f06f7f7750b86561e56f15398fcf8e5b5268 /autodoc | |
parent | d6c02169a688e4e4586660c7825dfdeb41cb75dc (diff) |
INTEGRATION: CWS adc18 (1.7.2); FILE MERGED
2007/10/18 15:23:15 np 1.7.2.1: #i81775#
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/source/display/toolkit/out_position.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/autodoc/source/display/toolkit/out_position.cxx b/autodoc/source/display/toolkit/out_position.cxx index 4d3a733008cb..a087ece77bcd 100644 --- a/autodoc/source/display/toolkit/out_position.cxx +++ b/autodoc/source/display/toolkit/out_position.cxx @@ -4,9 +4,9 @@ * * $RCSfile: out_position.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: vg $ $Date: 2007-09-18 14:04:18 $ + * last change: $Author: hr $ $Date: 2007-11-02 16:42:30 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -86,8 +86,8 @@ Position::Position( Node & i_directory, { } -Position::Position( Position & i_directory, - const String & i_sDifferentFile ) +Position::Position( const Position & i_directory, + const String & i_sDifferentFile ) : sFile(i_sDifferentFile), pDirectory(i_directory.pDirectory) { @@ -138,7 +138,7 @@ Position::operator-=( intt i_levels ) } String -Position::LinkTo( Position & i_destination, +Position::LinkTo( const Position & i_destination, const String & i_localLabel ) const { StreamLock aLink(C_nAssumedMaxLinkLength); @@ -156,11 +156,12 @@ Position::LinkToRoot( const String & ) const void Position::Get_LinkTo( StreamStr & o_result, - Position & i_destination, + const Position & i_destination, const String & i_localLabel ) const { Node * p1 = pDirectory; Node * p2 = i_destination.pDirectory; + intt diff = Depth() - i_destination.Depth(); intt pathLength1 = 0; intt pathLength2 = 0; @@ -252,4 +253,5 @@ get_UpLink(uintt i_depth) + } // namespace output |