Kaydet (Commit) 4e0dd43f authored tarafından Miklos Vajna's avatar Miklos Vajna

clang-format: don't pick up non-existing binary from PATH

When /opt/lo/bin/clang-format was missing, we "found" clang-format in
the last item of PATH, which doesn't make sense.

(Fix a spelling error in a formatted file to trigger the hook as part of
CI.)

Change-Id: I3b56a8ad02b4a55dba58e07286e31436a2842cf6
üst 793bbac3
......@@ -73,9 +73,9 @@ sub find()
{
foreach my $dir (split /:/, $ENV{PATH})
{
$clang_format = "$dir/clang-format";
if (is_matching_clang_format_version($clang_format, $version))
if (is_matching_clang_format_version("$dir/clang-format", $version))
{
$clang_format = "$dir/clang-format";
last;
}
}
......
......@@ -787,7 +787,7 @@ void RtfAttributeOutput::TableDefaultBorders(
static const char* aBorderNames[]
= { OOO_STRING_SVTOOLS_RTF_CLBRDRT, OOO_STRING_SVTOOLS_RTF_CLBRDRL,
OOO_STRING_SVTOOLS_RTF_CLBRDRB, OOO_STRING_SVTOOLS_RTF_CLBRDRR };
//Yes left and top are swapped with eachother for cell padding! Because
//Yes left and top are swapped with each other for cell padding! Because
//that's what the thundering annoying rtf export/import word xp does.
static const char* aCellPadNames[]
= { OOO_STRING_SVTOOLS_RTF_CLPADL, OOO_STRING_SVTOOLS_RTF_CLPADT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment