[Libreoffice-commits] .: 3 commits - autodoc/source
David Tardon
dtardon at kemper.freedesktop.org
Mon Jan 24 23:55:17 PST 2011
autodoc/source/ary/idl/i_ce.cxx | 14 +-------------
autodoc/source/display/idl/hfi_property.cxx | 1 -
autodoc/source/display/idl/hi_linkhelper.hxx | 4 +---
3 files changed, 2 insertions(+), 17 deletions(-)
New commits:
commit 824435ce89b4db541379451facb73792677d5cd0
Author: David Tardon <dtardon at redhat.com>
Date: Tue Jan 25 08:27:35 2011 +0100
WaE: uninitialized const
diff --git a/autodoc/source/ary/idl/i_ce.cxx b/autodoc/source/ary/idl/i_ce.cxx
index c586d2e..497d7c7 100644
--- a/autodoc/source/ary/idl/i_ce.cxx
+++ b/autodoc/source/ary/idl/i_ce.cxx
@@ -40,13 +40,6 @@ namespace ary
namespace idl
{
-namespace
-{
- const Ce_2s aConstCe2sDummy;
-}
-
-
-
CodeEntity::CodeEntity()
: aDocu(),
p2s(0)
@@ -60,9 +53,7 @@ CodeEntity::~CodeEntity()
const Ce_2s &
CodeEntity::Secondaries() const
{
- if (p2s)
- return *p2s;
- return aConstCe2sDummy;
+ return const_cast<CodeEntity*>(this)->Secondaries();
}
Ce_2s &
@@ -74,9 +65,6 @@ CodeEntity::Secondaries()
return *p2s;
}
-
-
-
} // namespace idl
} // namespace ary
commit c0200fc4eb629a4b4f8b0f050880dd203b1d261e
Author: David Tardon <dtardon at redhat.com>
Date: Tue Jan 25 08:06:09 2011 +0100
WaE: remove unused variable
diff --git a/autodoc/source/display/idl/hfi_property.cxx b/autodoc/source/display/idl/hfi_property.cxx
index 4540d99..22c132e 100644
--- a/autodoc/source/display/idl/hfi_property.cxx
+++ b/autodoc/source/display/idl/hfi_property.cxx
@@ -329,7 +329,6 @@ HF_IdlCommentedRelationElement::produce_Summary( Environment & io_env,
{
csv_assert( i_commentedRef.Info() );
- const ary::idl::Type_id aType = i_commentedRef.Type();
const ce_info & rDocu = *i_commentedRef.Info();
bool bShort = NOT rDocu.Short().IsEmpty();
commit 6af1fd3ef81554e62eb0c7d9b0f234669fd1430c
Author: David Tardon <dtardon at redhat.com>
Date: Tue Jan 25 08:04:59 2011 +0100
WaE: reference cannot be declared mutable
diff --git a/autodoc/source/display/idl/hi_linkhelper.hxx b/autodoc/source/display/idl/hi_linkhelper.hxx
index c08be55..1cdfaa7 100644
--- a/autodoc/source/display/idl/hi_linkhelper.hxx
+++ b/autodoc/source/display/idl/hi_linkhelper.hxx
@@ -85,9 +85,7 @@ class LinkHelper
const String & XrefsSuffix() const;
private:
- // DATA
- mutable HtmlEnvironment_Idl &
- rEnv;
+ HtmlEnvironment_Idl & rEnv;
};
inline const ary::idl::CodeEntity *
More information about the Libreoffice-commits
mailing list