From 142beddd7a7c374b59e678a7df71e25df13df3e4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 2 Aug 2014 19:29:59 -0500 Subject: Use polymorphism to simplify stdlib compatibility check --- Library/Homebrew/tab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/tab.rb') diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 0b1605ab1..436af0062 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -119,7 +119,7 @@ class Tab < OpenStruct # Older tabs won't have these values, so provide sensible defaults lib = stdlib.to_sym if stdlib cc = compiler || MacOS.default_compiler - CxxStdlib.new(lib, cc.to_sym) + CxxStdlib.create(lib, cc.to_sym) end def to_json -- cgit v1.2.3