summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2000-10-12 10:18:06 +0000
committerThomas Lange <tl@openoffice.org>2000-10-12 10:18:06 +0000
commit5f19efcf35a0142a55aa916e412cff1fba60bf99 (patch)
tree2e72c7ceb35a3de5a66c754fba7132884c81e91e
parent05ad443f3b4a572f06b4ec8a5e078acd1f1032e7 (diff)
argument to PTR_CAST macro made into variable (efficiency)
-rw-r--r--sw/source/ui/uiview/view.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx
index 899afeda221c..f439ec537bee 100644
--- a/sw/source/ui/uiview/view.cxx
+++ b/sw/source/ui/uiview/view.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: view.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jp $ $Date: 2000-10-06 13:38:28 $
+ * last change: $Author: tl $ $Date: 2000-10-12 11:18:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1035,7 +1035,8 @@ SwView::~SwView()
SwDocShell* SwView::GetDocShell()
{
- return PTR_CAST(SwDocShell, GetViewFrame()->GetObjectShell());
+ SfxObjectShell* pDocShell = GetViewFrame()->GetObjectShell();
+ return PTR_CAST(SwDocShell, pDocShell);
}
/*--------------------------------------------------------------------