Skip to content

Commit c9e47d6

Browse files
remove unused var
1 parent a143189 commit c9e47d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/stubutils.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ namespace mapistub
115115
L"onenote.exe",
116116
L"mspub.exe",
117117
L"visio.exe",
118-
L"mspub.exe"
119-
};
118+
L"mspub.exe"};
120119

121120
std::wstring GetInstalledOutlookMAPI(int iOutlook);
122121
std::wstring GetInstalledOutlookMAPI(const std::wstring component);
@@ -661,7 +660,7 @@ namespace mapistub
661660
std::transform(lower.begin(), lower.end(), lower.begin(), ::towlower);
662661
return lower.find(L"olmapi32.dll") != std::wstring::npos;
663662
};
664-
auto it = std::stable_partition(paths.begin(), paths.end(), is_olmapi32);
663+
static_cast<void>(std::stable_partition(paths.begin(), paths.end(), is_olmapi32));
665664
}
666665

667666
return paths;

0 commit comments

Comments
 (0)