summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-17 13:09:54 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 14:13:22 -0500
commitbbf435963eac44bc70c6a22605729b2d3f5417bf (patch)
tree48066b41ebbc16deadad642c1da9d455cb2ca82d /sc/source/filter/xml
parent1249182e1cd1245b9aaff908a6937bbc9010ff90 (diff)
Removed pointless inlining of methods.
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlfilti.cxx36
-rw-r--r--sc/source/filter/xml/xmlfilti.hxx13
2 files changed, 41 insertions, 8 deletions
diff --git a/sc/source/filter/xml/xmlfilti.cxx b/sc/source/filter/xml/xmlfilti.cxx
index 7eb44cfb0ae5..5338917c8d5e 100644
--- a/sc/source/filter/xml/xmlfilti.cxx
+++ b/sc/source/filter/xml/xmlfilti.cxx
@@ -176,6 +176,42 @@ void ScXMLFilterContext::SetCaseSensitive(bool b)
mrQueryParam.bCaseSens = b;
}
+void ScXMLFilterContext::SetUseRegularExpressions(bool bTemp)
+{
+ if (!bUseRegularExpressions)
+ bUseRegularExpressions = bTemp;
+}
+
+void ScXMLFilterContext::OpenConnection(bool bTemp)
+{
+ bool* pTemp = new bool;
+ *pTemp = bConnectionOr;
+ bConnectionOr = bNextConnectionOr;
+ bNextConnectionOr = bTemp;
+ aConnectionOrStack.Push(pTemp);
+}
+
+void ScXMLFilterContext::CloseConnection()
+{
+ bool* pTemp = static_cast <bool*> (aConnectionOrStack.Pop());
+ bConnectionOr = *pTemp;
+ bNextConnectionOr = *pTemp;
+ delete pTemp;
+}
+
+bool ScXMLFilterContext::GetConnection()
+{
+ bool bTemp = bConnectionOr;
+ bConnectionOr = bNextConnectionOr;
+ return bTemp;
+}
+
+void ScXMLFilterContext::AddFilterField(const sheet::TableFilterField2& aFilterField)
+{
+ aFilterFields.realloc(aFilterFields.getLength() + 1);
+ aFilterFields[aFilterFields.getLength() - 1] = aFilterField;
+}
+
ScXMLAndContext::ScXMLAndContext( ScXMLImport& rImport,
sal_uInt16 nPrfx,
const ::rtl::OUString& rLName,
diff --git a/sc/source/filter/xml/xmlfilti.hxx b/sc/source/filter/xml/xmlfilti.hxx
index 4759b7356127..4a8bb3affaae 100644
--- a/sc/source/filter/xml/xmlfilti.hxx
+++ b/sc/source/filter/xml/xmlfilti.hxx
@@ -84,14 +84,11 @@ public:
virtual void EndElement();
void SetCaseSensitive(const bool b);
- void SetUseRegularExpressions(const bool bTemp) { if (!bUseRegularExpressions) bUseRegularExpressions = bTemp;}
- void OpenConnection(const bool bTemp) { bool* pTemp = new bool; *pTemp = bConnectionOr;
- bConnectionOr = bNextConnectionOr; bNextConnectionOr = bTemp;
- aConnectionOrStack.Push(pTemp);}
- void CloseConnection() { bool* pTemp = static_cast <bool*> (aConnectionOrStack.Pop()); bConnectionOr = *pTemp; bNextConnectionOr = *pTemp; delete pTemp;}
- bool GetConnection() { bool bTemp = bConnectionOr; bConnectionOr = bNextConnectionOr; return bTemp; }
- void AddFilterField(const com::sun::star::sheet::TableFilterField2 aFilterField) { aFilterFields.realloc(aFilterFields.getLength() + 1);
- aFilterFields[aFilterFields.getLength() - 1] = aFilterField; }
+ void SetUseRegularExpressions(bool bTemp);
+ void OpenConnection(bool bTemp);
+ void CloseConnection();
+ bool GetConnection();
+ void AddFilterField(const com::sun::star::sheet::TableFilterField2& aFilterField);
};
class ScXMLAndContext : public SvXMLImportContext