diff options
Diffstat (limited to 'CPP/7zip/UI/GUI/BenchmarkDialog.cpp')
-rwxr-xr-x | CPP/7zip/UI/GUI/BenchmarkDialog.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/CPP/7zip/UI/GUI/BenchmarkDialog.cpp b/CPP/7zip/UI/GUI/BenchmarkDialog.cpp index f669c0e1..e4d6c019 100755 --- a/CPP/7zip/UI/GUI/BenchmarkDialog.cpp +++ b/CPP/7zip/UI/GUI/BenchmarkDialog.cpp @@ -415,9 +415,7 @@ struct CThreadBenchmark { CBenchmarkDialog *BenchmarkDialog; UInt64 _startTime; - #ifdef EXTERNAL_LZMA - CCodecs *codecs; - #endif + DECL_EXTERNAL_CODECS_VARS // UInt32 dictionarySize; // UInt32 numThreads; @@ -514,9 +512,7 @@ HRESULT CThreadBenchmark::Process() try { result = LzmaBench( - #ifdef EXTERNAL_LZMA - codecs, - #endif + EXTERNAL_CODECS_VARS numThreads, dictionarySize, &callback); } catch(...) @@ -564,14 +560,13 @@ HRESULT CThreadBenchmark::Process() } HRESULT Benchmark( - #ifdef EXTERNAL_LZMA - CCodecs *codecs, - #endif + DECL_EXTERNAL_CODECS_LOC_VARS UInt32 numThreads, UInt32 dictionarySize, HWND hwndParent) { CThreadBenchmark benchmarker; - #ifdef EXTERNAL_LZMA - benchmarker.codecs = codecs; + #ifdef EXTERNAL_CODECS + benchmarker._codecsInfo = codecsInfo; + benchmarker._externalCodecs = *externalCodecs; #endif CBenchmarkDialog benchmarkDialog; |