diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-22 09:20:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-22 09:23:49 +0100 |
commit | c8b9cbde1d5826931023cae062ba5c60da36820d (patch) | |
tree | 538aa3e815329f7e82c1b0041619f0e6828b4198 /desktop | |
parent | b8918b363ea7242c304f438a64baf55d19eecddf (diff) |
areBothOpenFrom can be a free function
Change-Id: I20697955457b1dadc334cb0f29c600687ae2d181
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/migration/migration_impl.hxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/desktop/source/migration/migration_impl.hxx b/desktop/source/migration/migration_impl.hxx index dc7d48ebf99c..9dab246792da 100644 --- a/desktop/source/migration/migration_impl.hxx +++ b/desktop/source/migration/migration_impl.hxx @@ -76,6 +76,14 @@ typedef std::vector< migration_step > migrations_v; typedef std::unique_ptr< migrations_v > migrations_vr; typedef std::vector< supported_migration > migrations_available; +namespace { + +inline bool areBothOpenFrom(OUString const & cmd1, OUString const & cmd2) +{ + return cmd1 == ".uno:Open" && cmd2.startsWith(".uno:OpenFrom"); +} + +} /** define the item, e.g.:menuitem, toolbaritem, to be migrated. we keep the information @@ -114,12 +122,6 @@ struct MigrationItem return *this; } - bool areBothOpenFrom(OUString const & cmd1, OUString const & cmd2) - { - return cmd1 == ".uno:Open" && cmd2.startsWith(".uno:OpenFrom"); - } - - bool operator==(const MigrationItem& aMigrationItem) { return ((aMigrationItem.m_sCommandURL == m_sCommandURL |