mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0028930: Coding Rules - eliminate GCC compiler warnings -Wmisleading-indentation
This commit is contained in:
parent
60afea0a98
commit
67908e84d7
@ -148,20 +148,26 @@ void XmlMDataStd_BooleanArrayDriver::Paste(const Handle(TDF_Attribute)& theSourc
|
|||||||
// Allocation of 4 chars for each byte.
|
// Allocation of 4 chars for each byte.
|
||||||
Standard_Integer iChar = 0;
|
Standard_Integer iChar = 0;
|
||||||
NCollection_LocalArray<Standard_Character> str;
|
NCollection_LocalArray<Standard_Character> str;
|
||||||
if (arr.Length())
|
if (!arr.IsEmpty())
|
||||||
str.Allocate(4 * arr.Length() + 1);
|
{
|
||||||
|
str.Allocate (4 * arr.Length() + 1);
|
||||||
|
}
|
||||||
|
|
||||||
// Convert integers - compressed boolean values, to a string.
|
// Convert integers - compressed boolean values, to a string.
|
||||||
Standard_Integer lower = arr.Lower(), i = lower, upper = arr.Upper();
|
const Standard_Integer upper = arr.Upper();
|
||||||
for (; i <= upper; i++)
|
for (Standard_Integer i = arr.Lower(); i <= upper; i++)
|
||||||
{
|
{
|
||||||
const Standard_Byte& byte = arr.Value(i);
|
const Standard_Byte& byte = arr.Value(i);
|
||||||
iChar += Sprintf(&(str[iChar]), "%d ", byte);
|
iChar += Sprintf(&(str[iChar]), "%d ", byte);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arr.Length())
|
if (!arr.IsEmpty())
|
||||||
|
{
|
||||||
XmlObjMgt::SetStringValue (theTarget, (Standard_Character*)str, Standard_True);
|
XmlObjMgt::SetStringValue (theTarget, (Standard_Character*)str, Standard_True);
|
||||||
if(aBooleanArray->ID() != TDataStd_BooleanArray::GetID()) {
|
}
|
||||||
|
|
||||||
|
if (aBooleanArray->ID() != TDataStd_BooleanArray::GetID())
|
||||||
|
{
|
||||||
//convert GUID
|
//convert GUID
|
||||||
Standard_Character aGuidStr [Standard_GUID_SIZE_ALLOC];
|
Standard_Character aGuidStr [Standard_GUID_SIZE_ALLOC];
|
||||||
Standard_PCharacter pGuidStr = aGuidStr;
|
Standard_PCharacter pGuidStr = aGuidStr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user