[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Tue Feb 7 08:50:51 PST 2012
writerfilter/source/rtftok/rtfreferenceproperties.cxx | 16 +++---
writerfilter/source/rtftok/rtfreferenceproperties.hxx | 4 -
writerfilter/source/rtftok/rtfvalue.cxx | 42 +++++++++---------
writerfilter/source/rtftok/rtfvalue.hxx | 4 -
4 files changed, 33 insertions(+), 33 deletions(-)
New commits:
commit 0e79718a1002d673cf8ef508e5963900ce84be1d
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Tue Feb 7 17:50:01 2012 +0100
rtftok: use m_r prefix for C++ reference members only
diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.cxx b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
index dac64ad..a28a96c 100644
--- a/writerfilter/source/rtftok/rtfreferenceproperties.cxx
+++ b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
@@ -30,15 +30,15 @@
namespace writerfilter {
namespace rtftok {
-RTFReferenceProperties::RTFReferenceProperties(RTFSprms rAttributes, RTFSprms rSprms)
- : m_rAttributes(rAttributes),
- m_rSprms(rSprms)
+RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
+ : m_aAttributes(aAttributes),
+ m_aSprms(aSprms)
{
}
-RTFReferenceProperties::RTFReferenceProperties(RTFSprms rAttributes)
- : m_rAttributes(rAttributes),
- m_rSprms()
+RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
+ : m_aAttributes(aAttributes),
+ m_aSprms()
{
}
@@ -48,9 +48,9 @@ RTFReferenceProperties::~RTFReferenceProperties()
void RTFReferenceProperties::resolve(Properties& rHandler)
{
- for (RTFSprms::Iterator_t i = m_rAttributes->begin(); i != m_rAttributes->end(); ++i)
+ for (RTFSprms::Iterator_t i = m_aAttributes->begin(); i != m_aAttributes->end(); ++i)
rHandler.attribute(i->first, *i->second.get());
- for (RTFSprms::Iterator_t i = m_rSprms->begin(); i != m_rSprms->end(); ++i)
+ for (RTFSprms::Iterator_t i = m_aSprms->begin(); i != m_aSprms->end(); ++i)
{
RTFSprm aSprm(i->first, i->second);
rHandler.sprm(aSprm);
diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.hxx b/writerfilter/source/rtftok/rtfreferenceproperties.hxx
index 4851398..ed86765 100644
--- a/writerfilter/source/rtftok/rtfreferenceproperties.hxx
+++ b/writerfilter/source/rtftok/rtfreferenceproperties.hxx
@@ -45,8 +45,8 @@ namespace writerfilter {
virtual void resolve(Properties & rHandler);
virtual std::string getType() const;
private:
- RTFSprms m_rAttributes;
- RTFSprms m_rSprms;
+ RTFSprms m_aAttributes;
+ RTFSprms m_aSprms;
};
} // namespace rtftok
} // namespace writerfilter
diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx
index 661781e..530bb1c 100644
--- a/writerfilter/source/rtftok/rtfvalue.cxx
+++ b/writerfilter/source/rtftok/rtfvalue.cxx
@@ -34,12 +34,12 @@ using rtl::OString;
using rtl::OUString;
RTFValue::RTFValue(int nValue, rtl::OUString sValue, RTFSprms rAttributes,
- RTFSprms rSprms, uno::Reference<drawing::XShape> rShape,
- uno::Reference<io::XInputStream> rStream)
+ RTFSprms rSprms, uno::Reference<drawing::XShape> xShape,
+ uno::Reference<io::XInputStream> xStream)
: m_nValue(nValue),
m_sValue(sValue),
- m_rShape(rShape),
- m_rStream(rStream),
+ m_xShape(xShape),
+ m_xStream(xStream),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms(rAttributes));
@@ -49,8 +49,8 @@ RTFValue::RTFValue(int nValue, rtl::OUString sValue, RTFSprms rAttributes,
RTFValue::RTFValue(int nValue)
: m_nValue(nValue),
m_sValue(),
- m_rShape(),
- m_rStream(),
+ m_xShape(),
+ m_xStream(),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms());
@@ -60,8 +60,8 @@ RTFValue::RTFValue(int nValue)
RTFValue::RTFValue(OUString sValue, bool bForce)
: m_nValue(),
m_sValue(sValue),
- m_rShape(),
- m_rStream(),
+ m_xShape(),
+ m_xStream(),
m_bForceString(bForce)
{
m_pAttributes.reset(new RTFSprms());
@@ -71,8 +71,8 @@ RTFValue::RTFValue(OUString sValue, bool bForce)
RTFValue::RTFValue(RTFSprms rAttributes)
: m_nValue(),
m_sValue(),
- m_rShape(),
- m_rStream(),
+ m_xShape(),
+ m_xStream(),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms(rAttributes));
@@ -82,8 +82,8 @@ RTFValue::RTFValue(RTFSprms rAttributes)
RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms)
: m_nValue(),
m_sValue(),
- m_rShape(),
- m_rStream(),
+ m_xShape(),
+ m_xStream(),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms(rAttributes));
@@ -93,8 +93,8 @@ RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms)
RTFValue::RTFValue(uno::Reference<drawing::XShape> rShape)
: m_nValue(),
m_sValue(),
- m_rShape(rShape),
- m_rStream(),
+ m_xShape(rShape),
+ m_xStream(),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms());
@@ -104,8 +104,8 @@ RTFValue::RTFValue(uno::Reference<drawing::XShape> rShape)
RTFValue::RTFValue(uno::Reference<io::XInputStream> rStream)
: m_nValue(),
m_sValue(),
- m_rShape(),
- m_rStream(rStream),
+ m_xShape(),
+ m_xStream(rStream),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms());
@@ -139,10 +139,10 @@ uno::Any RTFValue::getAny() const
uno::Any ret;
if (!m_sValue.isEmpty() || m_bForceString)
ret <<= m_sValue;
- else if (m_rShape.is())
- ret <<= m_rShape;
- else if (m_rStream.is())
- ret <<= m_rStream;
+ else if (m_xShape.is())
+ ret <<= m_xShape;
+ else if (m_xStream.is())
+ ret <<= m_xStream;
else
ret <<= static_cast<sal_Int32>(m_nValue);
return ret;
@@ -176,7 +176,7 @@ std::string RTFValue::toString() const
RTFValue* RTFValue::Clone()
{
- return new RTFValue(m_nValue, m_sValue, *m_pAttributes, *m_pSprms, m_rShape, m_rStream);
+ return new RTFValue(m_nValue, m_sValue, *m_pAttributes, *m_pSprms, m_xShape, m_xStream);
}
RTFSprms& RTFValue::getAttributes()
diff --git a/writerfilter/source/rtftok/rtfvalue.hxx b/writerfilter/source/rtftok/rtfvalue.hxx
index 7918428..c2ad524 100644
--- a/writerfilter/source/rtftok/rtfvalue.hxx
+++ b/writerfilter/source/rtftok/rtfvalue.hxx
@@ -65,8 +65,8 @@ namespace writerfilter {
rtl::OUString m_sValue;
boost::shared_ptr<RTFSprms> m_pAttributes;
boost::shared_ptr<RTFSprms> m_pSprms;
- uno::Reference<drawing::XShape> m_rShape;
- uno::Reference<io::XInputStream> m_rStream;
+ uno::Reference<drawing::XShape> m_xShape;
+ uno::Reference<io::XInputStream> m_xStream;
bool m_bForceString;
};
} // namespace rtftok
More information about the Libreoffice-commits
mailing list