cmOutputConverter::Convert: make precondition explicit
This commit is contained in:
parent
cd1f1cb544
commit
c23f89bc76
@ -161,9 +161,11 @@ std::string cmOutputConverter::Convert(RelativeRoot remote,
|
|||||||
OutputFormat output,
|
OutputFormat output,
|
||||||
bool optional) const
|
bool optional) const
|
||||||
{
|
{
|
||||||
const char* remotePath = this->GetRelativeRootPath(remote);
|
|
||||||
|
|
||||||
// The relative root must have a path (i.e. not FULL or NONE)
|
// The relative root must have a path (i.e. not FULL or NONE)
|
||||||
|
assert(remote != FULL);
|
||||||
|
assert(remote != NONE);
|
||||||
|
|
||||||
|
const char* remotePath = this->GetRelativeRootPath(remote);
|
||||||
assert(remotePath != 0);
|
assert(remotePath != 0);
|
||||||
|
|
||||||
if (!local.empty() && !optional) {
|
if (!local.empty() && !optional) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user