summaryrefslogtreecommitdiff
path: root/rsComponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rsComponent.cpp')
-rw-r--r--rsComponent.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp
index fde62a00..831580b2 100644
--- a/rsComponent.cpp
+++ b/rsComponent.cpp
@@ -31,12 +31,15 @@ Component::Component()
Component::Component(
DataKind dk, DataType dt,
- bool isNormalized, uint32_t bits)
+ bool isNormalized, uint32_t bits, const char * name)
{
mType = dt;
mKind = dk;
mIsNormalized = isNormalized;
mBits = bits;
+ if (name) {
+ mName = name;
+ }
}
Component::~Component()