[Libreoffice-commits] .: sfx2/inc sfx2/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri May 4 05:55:47 PDT 2012


 sfx2/inc/sfx2/docfile.hxx   |    4 ++--
 sfx2/source/doc/docfile.cxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 5794a9403059796a855c873f0e0f19f6cdbb2646
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri May 4 14:55:26 2012 +0200

    Improved variable name
    
    Change-Id: Id3a505afa3d8a6e99beeccafe30713cf40fc0c76

diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx
index 53846f3..70fae05 100644
--- a/sfx2/inc/sfx2/docfile.hxx
+++ b/sfx2/inc/sfx2/docfile.hxx
@@ -94,9 +94,9 @@ class SFX2_DLLPUBLIC SfxMedium : public SvRefBase
     String              aLongName;
     sal_Bool            bRemote;
 
-    sal_Bool            m_bIsReadOnly;
     com::sun::star::uno::Reference<com::sun::star::io::XInputStream>
     m_xInputStreamToLoadFrom;
+    bool                m_bInputStreamIsReadOnly;
 
 #if _SOLAR__PRIVATE
     SAL_DLLPRIVATE void SetIsRemote_Impl();
@@ -131,7 +131,7 @@ public:
                         GetInteractionHandler();
 
     void setStreamToLoadFrom(const com::sun::star::uno::Reference<com::sun::star::io::XInputStream>& xInputStream,sal_Bool bIsReadOnly )
-    { m_xInputStreamToLoadFrom = xInputStream; m_bIsReadOnly = bIsReadOnly; }
+    { m_xInputStreamToLoadFrom = xInputStream; m_bInputStreamIsReadOnly = bIsReadOnly; }
 
     void                SetLoadTargetFrame(SfxFrame* pFrame );
     SfxFrame*           GetLoadTargetFrame() const;
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index ced1950..2daebae 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2277,7 +2277,7 @@ void SfxMedium::GetMedium_Impl()
             {
                 pImp->xInputStream = m_xInputStreamToLoadFrom;
                 pImp->xInputStream->skipBytes(0);
-                if(m_bIsReadOnly)
+                if(m_bInputStreamIsReadOnly)
                     GetItemSet()->Put( SfxBoolItem( SID_DOC_READONLY, sal_True ) );
             }
             else


More information about the Libreoffice-commits mailing list