diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-27 00:39:13 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-28 00:59:53 +0100 |
commit | 0fb33f60ac08c853f14d19e6158994d092a82670 (patch) | |
tree | 387b11b27733d059092377d806fa3af15cbc7c0c /winaccessibility/inc | |
parent | e094d6fab61de95adb53759d69aad2447560581c (diff) |
winaccessibility: improve GenerateNewResId()
Change-Id: I81f98ca83b97bc2e3e419c7a37ad2a011932553b
Diffstat (limited to 'winaccessibility/inc')
-rw-r--r-- | winaccessibility/inc/ResIDGenerator.hxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/winaccessibility/inc/ResIDGenerator.hxx b/winaccessibility/inc/ResIDGenerator.hxx index f4c1f0a11791..dfe43a4f513c 100644 --- a/winaccessibility/inc/ResIDGenerator.hxx +++ b/winaccessibility/inc/ResIDGenerator.hxx @@ -29,28 +29,22 @@ class ResIDGenerator { private: - long min; long max; std::deque<long> subList; public: - ResIDGenerator( long minNum = PRIMARY_RESID,long maxNum = PRIMARY_RESID); + ResIDGenerator(long maxNum = PRIMARY_RESID) + : max(maxNum) {} + ~ResIDGenerator(); long GenerateNewResID(); void SetSub(long number) { subList.push_back(number); }; - virtual ~ResIDGenerator(); }; -inline ResIDGenerator::ResIDGenerator( long minNum ,long maxNum ) -{ - min = minNum; - max = maxNum; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |