bugfix filename for file checking
This commit is contained in:
parent
d1670f13cf
commit
bae6ee5c8b
1 changed files with 10 additions and 6 deletions
|
@ -2,9 +2,9 @@
|
||||||
*
|
*
|
||||||
* $RCSfile: cpputype.cxx,v $
|
* $RCSfile: cpputype.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.8 $
|
* $Revision: 1.9 $
|
||||||
*
|
*
|
||||||
* last change: $Author: jsc $ $Date: 2001-04-06 12:24:38 $
|
* last change: $Author: jsc $ $Date: 2001-04-06 14:01:15 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
|
@ -2490,11 +2490,13 @@ sal_Bool ModuleType::dump(CppuOptions* pOptions)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bFileExists = sal_False;
|
||||||
|
bFileCheck = sal_False;
|
||||||
OString hxxFileName = createFileNameFromType(outPath, tmpName, ".hpp");
|
OString hxxFileName = createFileNameFromType(outPath, tmpName, ".hpp");
|
||||||
|
|
||||||
if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
|
if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
|
||||||
{
|
{
|
||||||
bFileExists = fileExists( hFileName );
|
bFileExists = fileExists( hxxFileName );
|
||||||
ret = sal_True;
|
ret = sal_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2526,7 +2528,7 @@ sal_Bool ModuleType::dump(CppuOptions* pOptions)
|
||||||
hxxFile.closeFile();
|
hxxFile.closeFile();
|
||||||
if (ret && bFileCheck)
|
if (ret && bFileCheck)
|
||||||
{
|
{
|
||||||
ret = checkFileContent(hFileName, tmpFileName);
|
ret = checkFileContent(hxxFileName, tmpFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2697,11 +2699,13 @@ sal_Bool ConstantsType::dump(CppuOptions* pOptions)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bFileExists = sal_False;
|
||||||
|
bFileCheck = sal_False;
|
||||||
OString hxxFileName = createFileNameFromType(outPath, m_typeName, ".hpp");
|
OString hxxFileName = createFileNameFromType(outPath, m_typeName, ".hpp");
|
||||||
|
|
||||||
if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
|
if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
|
||||||
{
|
{
|
||||||
bFileExists = fileExists( hFileName );
|
bFileExists = fileExists( hxxFileName );
|
||||||
ret = sal_True;
|
ret = sal_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2732,7 +2736,7 @@ sal_Bool ConstantsType::dump(CppuOptions* pOptions)
|
||||||
hxxFile.closeFile();
|
hxxFile.closeFile();
|
||||||
if (ret && bFileCheck)
|
if (ret && bFileCheck)
|
||||||
{
|
{
|
||||||
ret = checkFileContent(hFileName, tmpFileName);
|
ret = checkFileContent(hxxFileName, tmpFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue