Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/GUI/BenchmarkDialog.cpp')
-rwxr-xr-xCPP/7zip/UI/GUI/BenchmarkDialog.cpp17
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;