Skip to content

Commit

Permalink
Replace immutable by struct for Julia v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Jul 4, 2017
1 parent f9680f5 commit 44d7014
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/datatypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

immutable SoftData
struct SoftData
data::AbstractArray
transform::Function
end
Expand Down
2 changes: 1 addition & 1 deletion src/plot_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

immutable VoxelReuse
struct VoxelReuse
img::AbstractArray

VoxelReuse(img) = ndims(img) == 3 ? new(img) : error("Image must be a 3D array")
Expand Down
2 changes: 1 addition & 1 deletion src/utils_gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

immutable GPUmeta
struct GPUmeta
dev
ctx
queue
Expand Down

0 comments on commit 44d7014

Please sign in to comment.