diff options
author | Stephen Hines <srhines@google.com> | 2013-08-22 01:24:06 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-08-22 01:29:21 -0700 |
commit | 7d1b757c0be2622b72b3d3a10826752adb3e5182 (patch) | |
tree | 7a6103db3da44dfbd551abbd588bcc88dfde4894 /cpp/Type.cpp | |
parent | 41efe87eb48ed945df2f26f4dff0eb5e00b8eebe (diff) | |
download | rs-7d1b757c0be2622b72b3d3a10826752adb3e5182.tar.gz |
Clean up RS C++ API visibility and fix some inconsistencies.
Bug: 10427951
- Constructors should mostly be protected, since we use Builders and create()
methods for most RS objects.
- Type::setY() should only accept unsigned input.
Change-Id: Id96138a6a8820348b2c26fc0772383326d321d50
Diffstat (limited to 'cpp/Type.cpp')
-rw-r--r-- | cpp/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/Type.cpp b/cpp/Type.cpp index 192dc686..fe807978 100644 --- a/cpp/Type.cpp +++ b/cpp/Type.cpp @@ -124,7 +124,7 @@ void Type::Builder::setX(uint32_t value) { mDimX = value; } -void Type::Builder::setY(int value) { +void Type::Builder::setY(uint32_t value) { if(value < 1) { ALOGE("Values of less than 1 for Dimension Y are not valid."); } |