diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-15 22:38:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-15 22:38:21 +0000 |
commit | f80b2b48f90a91661b7eb366b994dd651399c93b (patch) | |
tree | ec0849fced4f12dad536c2c9db4b26656f59feca | |
parent | Removed comphelper -> unotools processfactory.hxx duplication. (diff) | |
download | binfilter-f80b2b48f90a91661b7eb366b994dd651399c93b.tar.gz binfilter-f80b2b48f90a91661b7eb366b994dd651399c93b.zip |
Application::CreateUniqueId only need by binfilter, move content here
-rw-r--r-- | binfilter/bf_so3/source/data/pseudo.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/binfilter/bf_so3/source/data/pseudo.cxx b/binfilter/bf_so3/source/data/pseudo.cxx index 1e872e857..9127dc063 100644 --- a/binfilter/bf_so3/source/data/pseudo.cxx +++ b/binfilter/bf_so3/source/data/pseudo.cxx @@ -30,6 +30,7 @@ #include <bf_so3/pseudo.hxx> #include <tools/date.hxx> #include <tools/debug.hxx> +#include <tools/unqid.hxx> #include <vcl/svapp.hxx> #include <vcl/wrkwin.hxx> #include <vcl/menu.hxx> @@ -45,6 +46,15 @@ namespace binfilter { //========================================================================= PRV_SV_IMPL_OWNER_LIST(SvVerbList,SvVerb) +namespace +{ + UniqueItemId lclCreateUniqueId() + { + static UniqueIdContainer aUniqueIdContainer(UNIQUEID_SV_BEGIN); + return aUniqueIdContainer.CreateId(); + } +} + //========================================================================= SvVerb::SvVerb ( @@ -56,7 +66,7 @@ SvVerb::SvVerb { nId = nIdP; aName = rNameP; - aMenuId = GetpApp()->CreateUniqueId(); + aMenuId = lclCreateUniqueId(); bConst = bConstP; bOnMenu = bOnMenuP; } |