diff options
-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 |