Skip to content

Commit

Permalink
Merge pull request #192 from Numpsy/static
Browse files Browse the repository at this point in the history
Make a few private functions static
  • Loading branch information
ironfede authored Oct 14, 2024
2 parents baadaba + b76f7e1 commit 4f5674f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void WriteEntry(BinaryWriter bw, uint propertyIdentifier, string name)
}

// Write as much padding as needed to pad fieldLength to a multiple of 4 bytes
private void WritePaddingIfNeeded(BinaryWriter bw, int fieldLength)
private static void WritePaddingIfNeeded(BinaryWriter bw, int fieldLength)
{
var m = fieldLength % 4;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public void Save(CFStream cfStream)
ps.Write(bw);
}

private void AddDictionaryPropertyToPropertySet(Dictionary<uint, string> propertyNames, PropertySet propertySet)
private static void AddDictionaryPropertyToPropertySet(Dictionary<uint, string> propertyNames, PropertySet propertySet)
{
IDictionaryProperty dictionaryProperty = new DictionaryProperty(propertySet.PropertyContext.CodePage)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public TypedPropertyValue(VTPropertyType vtType, bool isVariant = false)

protected virtual bool NeedsPadding { get; set; } = true;

private PropertyDimensions CheckPropertyDimensions(VTPropertyType vtType)
private static PropertyDimensions CheckPropertyDimensions(VTPropertyType vtType)
{
if ((((ushort)vtType) & 0x1000) != 0)
return PropertyDimensions.IsVector;
Expand Down

0 comments on commit 4f5674f

Please sign in to comment.