aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-02 19:29:59 -0500
committerJack Nagel2014-08-02 19:29:59 -0500
commit142beddd7a7c374b59e678a7df71e25df13df3e4 (patch)
tree70a8208f5d1ec01665b53d445427630d9ee8a26d /Library/Homebrew/tab.rb
parent90e370d2eff4a2aaf00a4d2659192015fb7d91a4 (diff)
downloadbrew-142beddd7a7c374b59e678a7df71e25df13df3e4.tar.bz2
Use polymorphism to simplify stdlib compatibility check
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb2
1 files changed, 1 insertions, 1 deletions
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